Commit 99e94437 authored by Lubomir Bulej's avatar Lubomir Bulej
Browse files

src-test: cleaned up whitespace for the junit parts of the test suites.

parent 8b107133
...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*; ...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class After2Test { public class After2Test {
ClientServerRunner r = new ClientServerRunner(this.getClass()); ClientServerRunner r = new ClientServerRunner(this.getClass());
@Test @Test
public void test() public void test()
throws Exception { throws Exception {
r.start(); r.start();
r.waitFor(); r.waitFor();
r.assertIsFinished(); r.assertIsFinished();
if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); } if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); }
r.assertIsSuccessful(); r.assertIsSuccessful();
r.assertClientOut("client.out.resource"); r.assertClientOut("client.out.resource");
r.assertClientErrNull(); r.assertClientErrNull();
r.assertServerOutNull(); r.assertServerOutNull();
r.assertServerErrNull(); r.assertServerErrNull();
} }
@After @After
public void cleanup() { public void cleanup() {
r.destroy(); r.destroy();
} }
} }
...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*; ...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class After3Test { public class After3Test {
ClientServerRunner r = new ClientServerRunner(this.getClass()); ClientServerRunner r = new ClientServerRunner(this.getClass());
@Test @Test
public void test() public void test()
throws Exception { throws Exception {
r.start(); r.start();
r.waitFor(); r.waitFor();
r.assertIsFinished(); r.assertIsFinished();
if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); } if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); }
r.assertIsSuccessful(); r.assertIsSuccessful();
r.assertClientOut("client.out.resource"); r.assertClientOut("client.out.resource");
r.assertClientErrNull(); r.assertClientErrNull();
r.assertServerOutNull(); r.assertServerOutNull();
r.assertServerErrNull(); r.assertServerErrNull();
} }
@After @After
public void cleanup() { public void cleanup() {
r.destroy(); r.destroy();
} }
} }
...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*; ...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class AfterInitTest { public class AfterInitTest {
ClientServerRunner r = new ClientServerRunner(this.getClass()); ClientServerRunner r = new ClientServerRunner(this.getClass());
@Test @Test
public void test() public void test()
throws Exception { throws Exception {
r.start(); r.start();
r.waitFor(); r.waitFor();
r.assertIsFinished(); r.assertIsFinished();
if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); } if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); }
r.assertIsSuccessful(); r.assertIsSuccessful();
r.assertClientOut("client.out.resource"); r.assertClientOut("client.out.resource");
r.assertClientErrNull(); r.assertClientErrNull();
r.assertServerOutNull(); r.assertServerOutNull();
r.assertServerErrNull(); r.assertServerErrNull();
} }
@After @After
public void cleanup() { public void cleanup() {
r.destroy(); r.destroy();
} }
} }
...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*; ...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class ArgsTest { public class ArgsTest {
ClientServerRunner r = new ClientServerRunner(this.getClass()); ClientServerRunner r = new ClientServerRunner(this.getClass());
@Test @Test
public void test() public void test()
throws Exception { throws Exception {
r.start(); r.start();
r.waitFor(); r.waitFor();
r.assertIsFinished(); r.assertIsFinished();
if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); } if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); }
r.assertIsSuccessful(); r.assertIsSuccessful();
r.assertClientOut("client.out.resource"); r.assertClientOut("client.out.resource");
r.assertClientErrNull(); r.assertClientErrNull();
r.assertServerOutNull(); r.assertServerOutNull();
r.assertServerErrNull(); r.assertServerErrNull();
} }
@After @After
public void cleanup() { public void cleanup() {
r.destroy(); r.destroy();
} }
} }
...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*; ...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class BBMarkerTest { public class BBMarkerTest {
ClientServerRunner r = new ClientServerRunner(this.getClass()); ClientServerRunner r = new ClientServerRunner(this.getClass());
@Test @Test
public void test() public void test()
throws Exception { throws Exception {
r.start(); r.start();
r.waitFor(); r.waitFor();
r.assertIsFinished(); r.assertIsFinished();
if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); } if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); }
r.assertIsSuccessful(); r.assertIsSuccessful();
r.assertClientOut("client.out.resource"); r.assertClientOut("client.out.resource");
r.assertClientErrNull(); r.assertClientErrNull();
r.assertServerOutNull(); r.assertServerOutNull();
r.assertServerErrNull(); r.assertServerErrNull();
} }
@After @After
public void cleanup() { public void cleanup() {
r.destroy(); r.destroy();
} }
} }
...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*; ...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class BodyMarkerTest { public class BodyMarkerTest {
ClientServerRunner r = new ClientServerRunner(this.getClass()); ClientServerRunner r = new ClientServerRunner(this.getClass());
@Test @Test
public void test() public void test()
throws Exception { throws Exception {
r.start(); r.start();
r.waitFor(); r.waitFor();
r.assertIsFinished(); r.assertIsFinished();
if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); } if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); }
r.assertIsSuccessful(); r.assertIsSuccessful();
r.assertClientOut("client.out.resource"); r.assertClientOut("client.out.resource");
r.assertClientErrNull(); r.assertClientErrNull();
r.assertServerOutNull(); r.assertServerOutNull();
r.assertServerErrNull(); r.assertServerErrNull();
} }
@After @After
public void cleanup() { public void cleanup() {
r.destroy(); r.destroy();
} }
} }
...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*; ...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class ByteCodeMarkerTest { public class ByteCodeMarkerTest {
ClientServerRunner r = new ClientServerRunner(this.getClass()); ClientServerRunner r = new ClientServerRunner(this.getClass());
@Test @Test
public void test() public void test()
throws Exception { throws Exception {
r.start(); r.start();
r.waitFor(); r.waitFor();
r.assertIsFinished(); r.assertIsFinished();
if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); } if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); }
r.assertIsSuccessful(); r.assertIsSuccessful();
r.assertClientOut("client.out.resource"); r.assertClientOut("client.out.resource");
r.assertClientErrNull(); r.assertClientErrNull();
r.assertServerOutNull(); r.assertServerOutNull();
r.assertServerErrNull(); r.assertServerErrNull();
} }
@After @After
public void cleanup() { public void cleanup() {
r.destroy(); r.destroy();
} }
} }
...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*; ...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class CFlowTest { public class CFlowTest {
ClientServerRunner r = new ClientServerRunner(this.getClass()); ClientServerRunner r = new ClientServerRunner(this.getClass());
@Test @Test
public void test() public void test()
throws Exception { throws Exception {
r.start(); r.start();
r.waitFor(); r.waitFor();
r.assertIsFinished(); r.assertIsFinished();
if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); } if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); }
r.assertIsSuccessful(); r.assertIsSuccessful();
r.assertClientOut("client.out.resource"); r.assertClientOut("client.out.resource");
r.assertClientErrNull(); r.assertClientErrNull();
r.assertServerOutNull(); r.assertServerOutNull();
r.assertServerErrNull(); r.assertServerErrNull();
} }
@After @After
public void cleanup() { public void cleanup() {
r.destroy(); r.destroy();
} }
} }
...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*; ...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class ClassInfoTest { public class ClassInfoTest {
ClientServerRunner r = new ClientServerRunner(this.getClass()); ClientServerRunner r = new ClientServerRunner(this.getClass());
@Test @Test
public void test() public void test()
throws Exception { throws Exception {
r.start(); r.start();
r.waitFor(); r.waitFor();
r.assertIsFinished(); r.assertIsFinished();
if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); } if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); }
r.assertIsSuccessful(); r.assertIsSuccessful();
r.assertClientOut("client.out.resource"); r.assertClientOut("client.out.resource");
r.assertClientErrNull(); r.assertClientErrNull();
r.assertServerOutNull(); r.assertServerOutNull();
r.assertServerErrNull(); r.assertServerErrNull();
} }
@After @After
public void cleanup() { public void cleanup() {
r.destroy(); r.destroy();
} }
} }
...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.ClientServerRunner; ...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.ClientServerRunner;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class DynamicContextTest { public class DynamicContextTest {
ClientServerRunner r = new ClientServerRunner(this.getClass()); ClientServerRunner r = new ClientServerRunner(this.getClass());
@Test @Test
public void test() public void test()
throws Exception { throws Exception {
r.start(); r.start();
r.waitFor(); r.waitFor();
r.assertIsFinished(); r.assertIsFinished();
if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); } if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); }
r.assertIsSuccessful(); r.assertIsSuccessful();
r.assertClientOut("client.out.resource"); r.assertClientOut("client.out.resource");
r.assertClientErrNull(); r.assertClientErrNull();
r.assertServerOutNull(); r.assertServerOutNull();
r.assertServerErrNull(); r.assertServerErrNull();
} }
@After @After
public void cleanup() { public void cleanup() {
r.destroy(); r.destroy();
} }
} }
...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*; ...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class DynamicInfoTest { public class DynamicInfoTest {
ClientServerRunner r = new ClientServerRunner(this.getClass()); ClientServerRunner r = new ClientServerRunner(this.getClass());
@Test @Test
public void test() public void test()
throws Exception { throws Exception {
r.start(); r.start();
r.waitFor(); r.waitFor();
r.assertIsFinished(); r.assertIsFinished();
if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); } if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); }
r.assertIsSuccessful(); r.assertIsSuccessful();
r.assertClientOut("client.out.resource"); r.assertClientOut("client.out.resource");
r.assertClientErrNull(); r.assertClientErrNull();
r.assertServerOutNull(); r.assertServerOutNull();
r.assertServerErrNull(); r.assertServerErrNull();
} }
@After @After
public void cleanup() { public void cleanup() {
r.destroy(); r.destroy();
} }
} }
...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*; ...@@ -10,25 +10,25 @@ import ch.usi.dag.disl.test.utils.*;
@RunWith(JUnit4.class) @RunWith(JUnit4.class)
public class ExceptionTest { public class ExceptionTest {
ClientServerRunner r = new ClientServerRunner(this.getClass()); ClientServerRunner r = new ClientServerRunner(this.getClass());
@Test @Test
public void test() public void test()
throws Exception { throws Exception {
r.start(); r.start();
r.waitFor(); r.waitFor();
r.assertIsFinished(); r.assertIsFinished();
if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); } if(Boolean.parseBoolean(System.getProperty("disl.test.verbose"))) { r.destroyIfRunningAndFlushOutputs(); }
r.assertIsSuccessful(); r.assertIsSuccessful();
r.assertClientOut("client.out.resource"); r.assertClientOut("client.out.resource");
r.assertClientErrNull(); r.assertClientErrNull();
r.assertServerOutNull(); r.assertServerOutNull();
r.assertServerErrNull(); r.assertServerErrNull();
} }
@After @After
public void cleanup() { public void cleanup() {
r.destroy(); r.destroy();
} }
} }