Skip to content

Commit 9d7a85e

Browse files
Juan Pablo Diaz-VazJuan Pablo Diaz-Vaz
authored andcommitted
SUMOK-8 Added tests for Emitter and Sender
1 parent 4d44e79 commit 9d7a85e

36 files changed

Lines changed: 1082 additions & 6 deletions

build.xml

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
<fileset dir="${external.dir}" includes="**/*.jar" />
1414
<pathelement location="${basedir}/build" />
1515
<pathelement location="." />
16-
<pathelement location="${basedir}/samples" />
17-
<pathelement location="${basedir}/samples/sumologic" />
1816
</path>
1917

2018
<target name="clean">
@@ -44,10 +42,48 @@
4442
<antcall target="download"/>
4543
<antcall target="unzip"/>
4644
</target>
47-
48-
<target name="run">
45+
46+
<target name="test">
47+
<mkdir dir="${basedir}/build"/>
48+
<javac srcdir="${src.dir}/main/java"
49+
destdir="${basedir}/build"
50+
classpathref="sumologic.classpath"
51+
includes="com/mcplusa/kinesis/*.java, com/mcplusa/kinesis/utils/*.java,
52+
com/mcplusa/sumologic/*.java, com/mcplusa/sumologic/implementations/*.java"/>
53+
<javac srcdir="${src.dir}/test/java"
54+
destdir="${basedir}/build"
55+
classpathref="sumologic.classpath"
56+
includes="com/mcplusa/kinesis/*.java, com/mcplusa/kinesis/utils/*.java,
57+
com/mcplusa/sumologic/*.java, com/mcplusa/sumologic/implementations/*.java"/>
58+
<junit haltonfailure="yes"
59+
showoutput="yes"
60+
fork="yes"
61+
errorProperty="test.failed"
62+
failureProperty="test.failed">
63+
<classpath refid="sumologic.classpath"/>
64+
<formatter
65+
type="brief"
66+
usefile="false"/>
67+
68+
<batchtest fork="yes" todir="${reports.tests}">
69+
<fileset dir="${src.dir}/test/java">
70+
<include name="**/*Test*.java"/>
71+
</fileset>
72+
</batchtest>
73+
</junit>
74+
</target>
75+
76+
<target name="main">
4977
<mkdir dir="${basedir}/build"/>
50-
<javac srcdir="${src.dir}/" destdir="${basedir}/build" classpathref="sumologic.classpath" />
78+
<javac srcdir="${src.dir}/main/java"
79+
destdir="${basedir}/build"
80+
classpathref="sumologic.classpath"
81+
includes="com/mcplusa/kinesis/*.java, com/mcplusa/kinesis/utils/*.java,
82+
com/mcplusa/sumologic/*.java, com/mcplusa/sumologic/implementations/*.java"/>
5183
<java classname="com.mcplusa.sumologic.SumologicExecutor" classpathref="sumologic.classpath" fork="true" />
84+
</target>
85+
86+
<target name="run">
87+
<antcall target="main"/>
5288
</target>
5389
</project>

external/lib/hamcrest-core-1.3.jar

44 KB
Binary file not shown.

external/lib/wiremock-1.56.jar

220 KB
Binary file not shown.

external/test/guava-18.0.jar

2.15 MB
Binary file not shown.
93.6 KB
Binary file not shown.

external/test/jetty-6.1.26.jar

527 KB
Binary file not shown.
173 KB
Binary file not shown.

external/test/jopt-simple-4.9.jar

64.9 KB
Binary file not shown.

external/test/json-path-2.0.0.jar

133 KB
Binary file not shown.

external/test/jsonassert-1.2.3.jar

27 KB
Binary file not shown.

0 commit comments

Comments
 (0)