Mock Version: 1.4.15
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv5tel --nodeps /builddir/build/SPECS/mockito.spec'], chrootPath='/var/lib/mock/el-8-arm/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: 4 minutes 27 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
BUILDSTDERR: -----------------
BUILDSTDERR: Warnings
BUILDSTDERR: 000: /builddir/build/BUILD/mockito-1.10.19/target/mockito-core-1.10.19.jarUnused Import-Package instructions: [org.apache.tools.ant.*]
BUILDSTDERR: 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],
BUILDSTDERR: 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],
BUILDSTDERR: 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],
BUILDSTDERR: 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
BUILDSTDERR: Jun 27, 2019 5:59:06 PM java.util.jar.Attributes read
BUILDSTDERR: WARNING: Duplicate name in Manifest: Manifest-Version.
BUILDSTDERR: Ensure that the manifest does not have duplicate entries, and
BUILDSTDERR: that blank lines separate individual sections in both your
BUILDSTDERR: manifest and in the META-INF/MANIFEST.MF entry in the jar file.
BUILDSTDERR: Jun 27, 2019 5:59:06 PM java.util.jar.Attributes read
BUILDSTDERR: WARNING: Duplicate name in Manifest: Ant-Version.
BUILDSTDERR: Ensure that the manifest does not have duplicate entries, and
BUILDSTDERR: that blank lines separate individual sections in both your
BUILDSTDERR: manifest and in the META-INF/MANIFEST.MF entry in the jar file.
BUILDSTDERR: Jun 27, 2019 5:59:06 PM java.util.jar.Attributes read
BUILDSTDERR: WARNING: Duplicate name in Manifest: Bnd-LastModified.
BUILDSTDERR: Ensure that the manifest does not have duplicate entries, and
BUILDSTDERR: that blank lines separate individual sections in both your
BUILDSTDERR: manifest and in the META-INF/MANIFEST.MF entry in the jar file.
BUILDSTDERR: Jun 27, 2019 5:59:06 PM java.util.jar.Attributes read
BUILDSTDERR: WARNING: Duplicate name in Manifest: Built-By.
BUILDSTDERR: Ensure that the manifest does not have duplicate entries, and
BUILDSTDERR: that blank lines separate individual sections in both your
BUILDSTDERR: manifest and in the META-INF/MANIFEST.MF entry in the jar file.
BUILDSTDERR: Jun 27, 2019 5:59:06 PM java.util.jar.Attributes read
BUILDSTDERR: WARNING: Duplicate name in Manifest: Bundle-ManifestVersion.
BUILDSTDERR: Ensure that the manifest does not have duplicate entries, and
BUILDSTDERR: that blank lines separate individual sections in both your
BUILDSTDERR: manifest and in the META-INF/MANIFEST.MF entry in the jar file.
BUILDSTDERR: Jun 27, 2019 5:59:06 PM java.util.jar.Attributes read
BUILDSTDERR: WARNING: Duplicate name in Manifest: Bundle-Name.
BUILDSTDERR: Ensure that the manifest does not have duplicate entries, and
BUILDSTDERR: that blank lines separate individual sections in both your
BUILDSTDERR: manifest and in the META-INF/MANIFEST.MF entry in the jar file.
BUILDSTDERR: Jun 27, 2019 5:59:06 PM java.util.jar.Attributes read
BUILDSTDERR: WARNING: Duplicate name in Manifest: Bundle-SymbolicName.
BUILDSTDERR: Ensure that the manifest does not have duplicate entries, and
BUILDSTDERR: that blank lines separate individual sections in both your
BUILDSTDERR: manifest and in the META-INF/MANIFEST.MF entry in the jar file.
BUILDSTDERR: Jun 27, 2019 5:59:06 PM java.util.jar.Attributes read
BUILDSTDERR: WARNING: Duplicate name in Manifest: Bundle-Version.
BUILDSTDERR: Ensure that the manifest does not have duplicate entries, and
BUILDSTDERR: that blank lines separate individual sections in both your
BUILDSTDERR: manifest and in the META-INF/MANIFEST.MF entry in the jar file.
BUILDSTDERR: Jun 27, 2019 5:59:06 PM java.util.jar.Attributes read
BUILDSTDERR: WARNING: Duplicate name in Manifest: Created-By.
BUILDSTDERR: Ensure that the manifest does not have duplicate entries, and
BUILDSTDERR: that blank lines separate individual sections in both your
BUILDSTDERR: manifest and in the META-INF/MANIFEST.MF entry in the jar file.
BUILDSTDERR: Jun 27, 2019 5:59:06 PM java.util.jar.Attributes read
BUILDSTDERR: WARNING: Duplicate name in Manifest: Implementation-Version.
BUILDSTDERR: Ensure that the manifest does not have duplicate entries, and
BUILDSTDERR: that blank lines separate individual sections in both your
BUILDSTDERR: manifest and in the META-INF/MANIFEST.MF entry in the jar file.
BUILDSTDERR: Jun 27, 2019 5:59:06 PM java.util.jar.Attributes read
BUILDSTDERR: WARNING: Duplicate name in Manifest: Originally-Created-By.
BUILDSTDERR: Ensure that the manifest does not have duplicate entries, and
BUILDSTDERR: that blank lines separate individual sections in both your
BUILDSTDERR: manifest and in the META-INF/MANIFEST.MF entry in the jar file.
BUILDSTDERR: Jun 27, 2019 5:59:06 PM java.util.jar.Attributes read
BUILDSTDERR: WARNING: Duplicate name in Manifest: Require-Capability.
BUILDSTDERR: Ensure that the manifest does not have duplicate entries, and
BUILDSTDERR: that blank lines separate individual sections in both your
BUILDSTDERR: manifest and in the META-INF/MANIFEST.MF entry in the jar file.
BUILDSTDERR: Jun 27, 2019 5:59:06 PM java.util.jar.Attributes read
BUILDSTDERR: WARNING: Duplicate name in Manifest: Tool.
BUILDSTDERR: Ensure that the manifest does not have duplicate entries, and
BUILDSTDERR: that blank lines separate individual sections in both your
BUILDSTDERR: 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.1xmOU9
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm
BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm
+ cd mockito-1.10.19
+ xmvn-install -R .xmvn-reactor -n mockito -d /builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm
BUILDSTDERR: [INFO] Installing artifact org.mockito:mockito-core:pom:1.10.19
BUILDSTDERR: [INFO] Installing artifact org.mockito:mockito-core:jar:1.10.19
BUILDSTDERR: [INFO] Installation successful
+ jdir=target/javadoc
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm/usr/share/licenses
+ '[' -d target/javadoc ']'
+ install -dm755 /builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm/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.el8.arm/usr/share/javadoc/mockito
+ echo /usr/share/javadoc/mockito
+ /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 1.10.19-17.el8 --unique-debug-suffix -1.10.19-17.el8.arm --unique-debug-src-base mockito-1.10.19-17.el8.arm --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
BUILDSTDERR: /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.el8.noarch
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.dyGNcW
+ umask 022
+ cd /builddir/build/BUILD
+ cd mockito-1.10.19
+ LICENSEDIR=/builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm/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.el8.arm/usr/share/licenses/mockito
+ cp -pr LICENSE /builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm/usr/share/licenses/mockito
+ cp -pr NOTICE /builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm/usr/share/licenses/mockito
+ exit 0
BUILDSTDERR: [INFO osgi.prov] input: ['/builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm/usr/share/java/mockito/mockito-core.jar']
BUILDSTDERR: [INFO osgi.prov] osgi(org.mockito.mockito-core) = 1.10.19
BUILDSTDERR: [INFO osgi.req] input: ['/builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm/usr/share/java/mockito/mockito-core.jar']
BUILDSTDERR: [INFO osgi.req] osgi(org.hamcrest.core)
BUILDSTDERR: [INFO maven.prov] input: ['/builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm/usr/share/maven-metadata/mockito.xml']
BUILDSTDERR: [INFO maven.prov] mvn(org.mockito:mockito-core:pom:) = 1.10.19
BUILDSTDERR: mvn(org.mockito:mockito-all:pom:) = 1.10.19, mvn(org.mockito:mockito-core) = 1.10.19
BUILDSTDERR: mvn(org.mockito:mockito-all) = 1.10.19
BUILDSTDERR: [INFO maven.req] input: ['/builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm/usr/share/maven-metadata/mockito.xml']
BUILDSTDERR: [INFO maven.req] java-headless, mvn(org.hamcrest:hamcrest-core), mvn(net.sf.cglib:cglib), javapackages-filesystem, mvn(org.objenesis:objenesis)
Provides: mockito = 1.10.19-17.el8 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.el8.noarch
Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.FTIwGd
+ umask 022
+ cd /builddir/build/BUILD
+ cd mockito-1.10.19
+ LICENSEDIR=/builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm/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.el8.arm/usr/share/licenses/mockito-javadoc
+ cp -pr LICENSE /builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm/usr/share/licenses/mockito-javadoc
+ cp -pr NOTICE /builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm/usr/share/licenses/mockito-javadoc
+ exit 0
Provides: mockito-javadoc = 1.10.19-17.el8
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.el8.arm
Wrote: /builddir/build/RPMS/mockito-1.10.19-17.el8.noarch.rpm
Wrote: /builddir/build/RPMS/mockito-javadoc-1.10.19-17.el8.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.LTq2uD
+ umask 022
+ cd /builddir/build/BUILD
+ cd mockito-1.10.19
+ /usr/bin/rm -rf /builddir/build/BUILDROOT/mockito-1.10.19-17.el8.arm
+ exit 0
Child return code was: 0