Mock Version: 2.12
Mock Version: 2.12
Mock Version: 2.12
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/mockito.spec'], chrootPath='/var/lib/mock/module-javapackages-tools-201801-8060020220519080214-c0229ad2-build-62751-21431/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0; tag
[javadoc] *
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/AdditionalAnswers.java:174: warning: no @param for tag
[javadoc] *
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/AdditionalAnswers.java:195: warning: no @param for tag
[javadoc] *
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:1864: warning: empty tag
[javadoc] *
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:2261: error: bad HTML entity
[javadoc] * Repeat after me: simple tests push simple, KISSy, readable & maintainable code.
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:2266: error: bad HTML entity
[javadoc] * //Creates mock with different default answer & name
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Matchers.java:242: warning: no @param for
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/ArgumentCaptor.java:17: error: bad HTML entity
[javadoc] * This is also the recommended way of matching arguments because it makes tests clean & simple.
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/BDDMockito.java:190: warning: no @param for
[javadoc] *
Important gotcha on spying real objects!
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:1367: warning: no @param for
@Mock
annotation doReturn()
|doThrow()
|doAnswer()
|doNothing()
|doCallRealMethod()
family of methods@Captor
, @Spy
, @InjectMocks
(Since 1.8.3) @Spies
, @InjectMocks
and constructor injection goodness (Since 1.9.0)MockMaker
API (Since 1.9.5)equals()
with occasional anyX()
matchers tend to give clean & simple tests.
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:198: error: invalid name for anchor: "4"
[javadoc] * tag [javadoc] *
[javadoc] ^ [javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:348: error: invalid name for anchor: "9" [javadoc] *
@Mock
annotationtag [javadoc] *
[javadoc] ^ [javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:417: error: invalid name for anchor: "11" [javadoc] *
doReturn()
|doThrow()
|
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:487: error: invalid name for anchor: "13"
[javadoc] * tag [javadoc] *
[javadoc] ^ [javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:560: error: invalid name for anchor: "14" [javadoc] *
tag [javadoc] *
[javadoc] ^ [javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:635: error: bad HTML entity [javadoc] * However, I wouldn't use partial mocks for new, test-driven & well-designed code. [javadoc] ^ [javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:640: error: invalid name for anchor: "17" [javadoc] *
@Captor
,
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:770: warning: empty tag [javadoc] *
[javadoc] ^ [javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:775: error: invalid name for anchor: "22" [javadoc] *
tag [javadoc] *
[javadoc] ^ [javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:807: error: invalid name for anchor: "23" [javadoc] *
@Spies
,
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/Mockito.java:831: error: invalid name for anchor: "24"
[javadoc] * MockMaker
API (Since 1.9.5)tag [javadoc] *
[javadoc] ^ [javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/MockitoAnnotations.java:89: warning: no @param for testClass [javadoc] public static void initMocks(Object testClass) { [javadoc] ^ [javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/MockitoAnnotations.java:26: warning: empty
tag [javadoc] *
[javadoc] ^ [javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/MockSettings.java:46: error: bad HTML entity [javadoc] * The object under test should know exactly its collaborators & dependencies. [javadoc] ^ [javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/MockSettings.java:47: error: bad HTML entity [javadoc] * If you happen to use it often than please make sure you are really producing simple, clean & readable code. [javadoc] ^ [javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/MockSettings.java:96: error: bad HTML entity [javadoc] * However, I wouldn't use partial mocks for new, test-driven & well-designed code. [javadoc] ^ [javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/MockSettings.java:109: error: element not closed: pre [javadoc] *
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/MockSettings.java:268: warning: no @param for outerClassInstance
[javadoc] MockSettings outerInstance(Object outerClassInstance);
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/MockSettings.java:15: error: self-closing element not allowed
[javadoc] *
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/MockSettings.java:18: error: bad HTML entity
[javadoc] * Repeat after me: simple tests push simple, KISSy, readable & maintainable code.
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/MockSettings.java:20: error: self-closing element not allowed
[javadoc] *
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/MockSettings.java:23: error: bad HTML entity
[javadoc] * //Creates mock with different default answer & name
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/ReturnValues.java:36: warning: no @throws for java.lang.Throwable
[javadoc] Object valueFor(InvocationOnMock invocation) throws Throwable;
[javadoc] ^
[javadoc] /builddir/build/BUILD/mockito-1.10.19/src/org/mockito/configuration/AnnotationEngine.java:30: warning: no @return
[javadoc] Object createMockFor(Annotation annotation, Field field);
[javadoc] ^
[javadoc] Generating /builddir/build/BUILD/mockito-1.10.19/target/javadoc/serialized-form.html...
[javadoc] Copying file StandardDocFile[file:/builddir/build/BUILD/mockito-1.10.19/javadoc/stylesheet.css] to file stylesheet.css...
[javadoc] 100 errors
[javadoc] 100 warnings
BUILD SUCCESSFUL
Total time: 6 seconds
+ pushd target
~/build/BUILD/mockito-1.10.19/target ~/build/BUILD/mockito-1.10.19
+ bnd wrap --version 1.10.19 --output mockito-core-1.10.19.bar --properties ../conf/mockito-core.bnd mockito-core-1.10.19.jar
-----------------
Warnings
000: /builddir/build/BUILD/mockito-1.10.19/target/mockito-core-1.10.19.jarUnused Import-Package instructions: [org.apache.tools.ant.*]
001: /builddir/build/BUILD/mockito-1.10.19/target/mockito-core-1.10.19.jarExport org.mockito.exceptions, has 3, private references [org.mockito.internal.exceptions, org.mockito.internal.matchers, org.mockito.internal.reporting],
002: /builddir/build/BUILD/mockito-1.10.19/target/mockito-core-1.10.19.jarExport org.mockito.stubbing, has 1, private references [org.mockito.internal.progress],
003: /builddir/build/BUILD/mockito-1.10.19/target/mockito-core-1.10.19.jarExport org.mockito.stubbing.answers, has 1, private references [org.mockito.internal.stubbing.answers],
004: /builddir/build/BUILD/mockito-1.10.19/target/mockito-core-1.10.19.jarExport org.mockito.verification, has 2, private references [org.mockito.internal.verification, org.mockito.internal.verification.api],
+ mv mockito-core-1.10.19.bar mockito-core-1.10.19.jar
+ unzip mockito-core-1.10.19.jar META-INF/MANIFEST.MF
Archive: mockito-core-1.10.19.jar
inflating: META-INF/MANIFEST.MF
+ sed -i -e '2iRequire-Bundle: org.hamcrest.core' META-INF/MANIFEST.MF
+ jar umf META-INF/MANIFEST.MF mockito-core-1.10.19.jar
May 19, 2022 7:24:18 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Manifest-Version.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 19, 2022 7:24:18 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Ant-Version.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 19, 2022 7:24:18 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Bnd-LastModified.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 19, 2022 7:24:18 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Built-By.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 19, 2022 7:24:18 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Bundle-ManifestVersion.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 19, 2022 7:24:18 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Bundle-Name.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 19, 2022 7:24:18 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Bundle-SymbolicName.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 19, 2022 7:24:18 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Bundle-Version.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 19, 2022 7:24:18 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Created-By.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 19, 2022 7:24:18 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Implementation-Version.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 19, 2022 7:24:18 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Originally-Created-By.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 19, 2022 7:24:18 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Require-Capability.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
May 19, 2022 7:24:18 PM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Tool.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
+ popd
~/build/BUILD/mockito-1.10.19
+ sed -i -e 's|@version@|1.10.19|g' maven/mockito-core.pom
+ /usr/libexec/platform-python /usr/share/java-utils/mvn_artifact.py maven/mockito-core.pom target/mockito-core-1.10.19.jar
+ /usr/libexec/platform-python /usr/share/java-utils/mvn_alias.py org.mockito:mockito-core org.mockito:mockito-all
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.9hE3In
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch
++ dirname /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch
+ cd mockito-1.10.19
+ xmvn-install -R .xmvn-reactor -n mockito -d /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch
[INFO] Installing artifact org.mockito:mockito-core:pom:1.10.19
[INFO] Installing artifact org.mockito:mockito-core:jar:1.10.19
[INFO] Installation successful
+ jdir=target/javadoc
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/licenses
+ '[' -d target/javadoc ']'
+ install -dm755 /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/javadoc/mockito
+ cp -pr target/javadoc/constant-values.html target/javadoc/org target/javadoc/overview-frame.html target/javadoc/package-list target/javadoc/serialized-form.html /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/javadoc/mockito
+ echo /usr/share/javadoc/mockito
+ /usr/lib/rpm/find-debuginfo.sh -j8 --strict-build-id -m -i --build-id-seed 1.10.19-17.module+el8.6.0+500+11037448 --unique-debug-suffix -1.10.19-17.module+el8.6.0+500+11037448.noarch --unique-debug-src-base mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/mockito-1.10.19
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
/sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile '' 1
+ /usr/lib/rpm/brp-python-hardlink
+ PYTHON3=/usr/libexec/platform-python
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
Processing files: mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.wQbHPp
+ umask 022
+ cd /builddir/build/BUILD
+ cd mockito-1.10.19
+ LICENSEDIR=/builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/licenses/mockito
+ export LC_ALL=C
+ LC_ALL=C
+ export LICENSEDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/licenses/mockito
+ cp -pr LICENSE /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/licenses/mockito
+ cp -pr NOTICE /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/licenses/mockito
+ exit 0
[INFO osgi.prov] input: ['/builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/java/mockito/mockito-core.jar']
[INFO osgi.prov] osgi(org.mockito.mockito-core) = 1.10.19
[INFO osgi.req] input: ['/builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/java/mockito/mockito-core.jar']
[INFO osgi.req] osgi(org.hamcrest.core)
[INFO maven.prov] input: ['/builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/maven-metadata/mockito.xml']
[INFO maven.prov] mvn(org.mockito:mockito-core:pom:) = 1.10.19
mvn(org.mockito:mockito-all:pom:) = 1.10.19, mvn(org.mockito:mockito-core) = 1.10.19
mvn(org.mockito:mockito-all) = 1.10.19
[INFO maven.req] input: ['/builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/maven-metadata/mockito.xml']
[INFO maven.req] mvn(org.objenesis:objenesis), mvn(org.hamcrest:hamcrest-core), javapackages-filesystem, mvn(net.sf.cglib:cglib), java-headless
Provides: mockito = 1.10.19-17.module+el8.6.0+500+11037448 mvn(org.mockito:mockito-all) = 1.10.19 mvn(org.mockito:mockito-all:pom:) = 1.10.19 mvn(org.mockito:mockito-core) = 1.10.19 mvn(org.mockito:mockito-core:pom:) = 1.10.19 osgi(org.mockito.mockito-core) = 1.10.19
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: java-headless javapackages-filesystem mvn(net.sf.cglib:cglib) mvn(org.hamcrest:hamcrest-core) mvn(org.objenesis:objenesis) osgi(org.hamcrest.core)
Processing files: mockito-javadoc-1.10.19-17.module+el8.6.0+500+11037448.noarch
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.QWtNpo
+ umask 022
+ cd /builddir/build/BUILD
+ cd mockito-1.10.19
+ LICENSEDIR=/builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/licenses/mockito-javadoc
+ export LC_ALL=C
+ LC_ALL=C
+ export LICENSEDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/licenses/mockito-javadoc
+ cp -pr LICENSE /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/licenses/mockito-javadoc
+ cp -pr NOTICE /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch/usr/share/licenses/mockito-javadoc
+ exit 0
Provides: mockito-javadoc = 1.10.19-17.module+el8.6.0+500+11037448
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: javapackages-filesystem
Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch
Wrote: /builddir/build/RPMS/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch.rpm
Wrote: /builddir/build/RPMS/mockito-javadoc-1.10.19-17.module+el8.6.0+500+11037448.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.zr5qUn
+ umask 022
+ cd /builddir/build/BUILD
+ cd mockito-1.10.19
+ /usr/bin/rm -rf /builddir/build/BUILDROOT/mockito-1.10.19-17.module+el8.6.0+500+11037448.noarch
+ exit 0
Child return code was: 0