Commit bc84d1bf authored by Dr. Martin Goik's avatar Dr. Martin Goik

Illustration junit dependencies

parent 11369a61
......@@ -10533,7 +10533,7 @@ class_wrapper_private.Day'</emphasis></screen></td>
</figure>
<figure xml:id="sd1_fig_enumOnlyPrivateConstructor">
<title> Constructor implicitly <code
<title>Constructor implicitly <code
language="java">private</code></title>
<informaltable border="0">
......@@ -11546,8 +11546,7 @@ Elapsed time: 25422 nanoseconds</screen>
<colgroup width="74%"/>
<tr>
<td valign="top"><programlisting language="java">...
public
<td valign="top"><programlisting language="java">public
@interface <link xlink:href="https://github.com/junit-team/junit4/blob/master/src/main/java/org/junit/Test.java">Test</link> {
...
}</programlisting></td>
......@@ -11567,6 +11566,68 @@ public
</tr>
</informaltable>
</figure>
<figure xml:id="sd1_fig_junitClassAssert">
<title>The <interfacename
xlink:href="https://github.com/junit-team/junit4/blob/master/src/main/java/org/junit/Assert.java">Assert</interfacename>
class</title>
<programlisting language="java">public class <link
xlink:href="https://github.com/junit-team/junit4/blob/master/src/main/java/org/junit/Assert.java">Assert</link> {
public static void assertTrue(
String message, boolean condition) { ...}
public static void assertEquals(
long expected, long actual) { ...}
...
}</programlisting>
</figure>
<figure xml:id="sd1_fig_junitMavenImport">
<title>Importing dependencies</title>
<informaltable border="0">
<colgroup width="26%"/>
<colgroup width="74%"/>
<tr>
<td valign="top"><programlisting language="none">&lt;project ...&gt;
...
&lt;dependencies&gt;
&lt;dependency&gt;
&lt;groupId&gt;<emphasis role="red">junit</emphasis>&lt;/groupId&gt;
&lt;artifactId&gt;<emphasis role="red">junit</emphasis>&lt;/artifactId&gt;
&lt;version&gt;<emphasis role="red">4.12</emphasis>&lt;/version&gt;
&lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;
...
&lt;/dependencies&gt;
...
&lt;/project&gt;</programlisting></td>
<td valign="top"><para>Local file
path:</para><para><code>/home/goik/.m2/repository/junit/junit/4.12/junit-4.12.jar</code></para><para>Remote
address:</para><para><uri
xlink:href="https://mvnrepository.com/artifact/junit/junit/4.12">https://mvnrepository.com/artifact/junit/junit/4.12</uri></para></td>
</tr>
</informaltable>
</figure>
<figure xml:id="sd1_fig_junitExamineArchive">
<title>Dependency archive content</title>
<screen>&gt; jar -tf junit-4.12.jar
META-INF/
META-INF/MANIFEST.MF
org/
org/junit/
...
org/junit/Assert.class
...</screen>
</figure>
</section>
</section>
</chapter>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment