Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-08-29 05:02:11 +0000
committerrbrooks2010-08-29 05:02:11 +0000
commit5a4058affbff23e1fad7c559eeb691161ea94b57 (patch)
tree709ca8587ec038ecdd4bfbcaff50bb6379e2fa6a /plugins/org.eclipse.osee.ote.message.test
parentc850774504ad977892dfece2dc330ab769b234f1 (diff)
downloadorg.eclipse.osee-5a4058affbff23e1fad7c559eeb691161ea94b57.tar.gz
org.eclipse.osee-5a4058affbff23e1fad7c559eeb691161ea94b57.tar.xz
org.eclipse.osee-5a4058affbff23e1fad7c559eeb691161ea94b57.zip
Eclipse source cleanup and format
Diffstat (limited to 'plugins/org.eclipse.osee.ote.message.test')
-rw-r--r--plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/mock/UnitTestSupport.java6
-rw-r--r--plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestFloat32Operations.java7
-rw-r--r--plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestIntegerOperations.java49
-rw-r--r--plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestStringOperations.java13
4 files changed, 60 insertions, 15 deletions
diff --git a/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/mock/UnitTestSupport.java b/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/mock/UnitTestSupport.java
index 69e141e568d..6e2aa9d5767 100644
--- a/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/mock/UnitTestSupport.java
+++ b/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/mock/UnitTestSupport.java
@@ -328,11 +328,11 @@ public class UnitTestSupport {
checkList(element, goodValues, 100);
}
- // check pass
+ // check pass
maintainRandomizedList(element, goodValues, 500);
checkList(element, goodValues, 500);
- // check failure
+ // check failure
maintainRandomizedList(element, badValues, 500);
checkListFail(element, goodValues, 500);
}
@@ -360,7 +360,7 @@ public class UnitTestSupport {
}
}
- // check failure
+ // check failure
handle = maintainRandomizedList(element, excludeValues, 10);
try {
checkNotInListFail(element, excludeValues, 550);
diff --git a/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestFloat32Operations.java b/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestFloat32Operations.java
index 6a8ee7a5b6d..f7fccef0398 100644
--- a/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestFloat32Operations.java
+++ b/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestFloat32Operations.java
@@ -44,8 +44,11 @@ public class TestFloat32Operations {
TestMessage msg = new TestMessage();
support.activateMsg(msg);
- support.genericTestCheckWaitForValue(msg.FLOAT32_ELEMENT_1, new Double[] {new Double(0.0f), new Double(0.2f),
- new Double(100.0f), new Double(999.00075f)}, new Double(33.4001f));
+ support.genericTestCheckWaitForValue(msg.FLOAT32_ELEMENT_1, new Double[] {
+ new Double(0.0f),
+ new Double(0.2f),
+ new Double(100.0f),
+ new Double(999.00075f)}, new Double(33.4001f));
}
}
diff --git a/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestIntegerOperations.java b/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestIntegerOperations.java
index 666ac98ccf5..a4ae24bee2d 100644
--- a/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestIntegerOperations.java
+++ b/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestIntegerOperations.java
@@ -46,8 +46,24 @@ public class TestIntegerOperations {
TestMessage msg = new TestMessage();
support.activateMsg(msg);
int maxElementValue = getMaxIntValue(msg.INT_ELEMENT_1);
- support.genericTestCheckWaitForValue(msg.INT_ELEMENT_1, new Integer[] {10, 30, 31, 30, 50, 75, maxElementValue,
- maxElementValue, 400, 1, maxElementValue, 0, maxElementValue, 1, 0, 1, 2}, 49);
+ support.genericTestCheckWaitForValue(msg.INT_ELEMENT_1, new Integer[] {
+ 10,
+ 30,
+ 31,
+ 30,
+ 50,
+ 75,
+ maxElementValue,
+ maxElementValue,
+ 400,
+ 1,
+ maxElementValue,
+ 0,
+ maxElementValue,
+ 1,
+ 0,
+ 1,
+ 2}, 49);
}
@Test
@@ -63,8 +79,17 @@ public class TestIntegerOperations {
TestMessage msg = new TestMessage();
support.activateMsg(msg);
int maxElementValue = getMaxIntValue(msg.INT_ELEMENT_1);
- support.genericCheckMaintain(msg.INT_ELEMENT_1, new Integer[] {0, maxElementValue, 0, 0, maxElementValue,
- maxElementValue, 1000, 5, 1, maxElementValue - 1});
+ support.genericCheckMaintain(msg.INT_ELEMENT_1, new Integer[] {
+ 0,
+ maxElementValue,
+ 0,
+ 0,
+ maxElementValue,
+ maxElementValue,
+ 1000,
+ 5,
+ 1,
+ maxElementValue - 1});
}
@Test
@@ -250,8 +275,12 @@ public class TestIntegerOperations {
TestMessage msg = new TestMessage();
support.activateMsg(msg);
- support.genericTestCheckList(msg.INT_ELEMENT_1, new Integer[] {20, 40, 50, 60, 80, 100}, new Integer[] {200, 300,
- 400, 500, 600});
+ support.genericTestCheckList(msg.INT_ELEMENT_1, new Integer[] {20, 40, 50, 60, 80, 100}, new Integer[] {
+ 200,
+ 300,
+ 400,
+ 500,
+ 600});
}
@Test
@@ -259,8 +288,12 @@ public class TestIntegerOperations {
TestMessage msg = new TestMessage();
support.activateMsg(msg);
- support.genericTestCheckNotList(msg.INT_ELEMENT_1, new Integer[] {20, 40, 50, 60, 80, 100}, new Integer[] {200,
- 300, 400, 500, 600});
+ support.genericTestCheckNotList(msg.INT_ELEMENT_1, new Integer[] {20, 40, 50, 60, 80, 100}, new Integer[] {
+ 200,
+ 300,
+ 400,
+ 500,
+ 600});
}
@Test
diff --git a/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestStringOperations.java b/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestStringOperations.java
index 017269b2d3b..b71461b85ed 100644
--- a/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestStringOperations.java
+++ b/plugins/org.eclipse.osee.ote.message.test/src/org/eclipse/osee/ote/message/test/other/TestStringOperations.java
@@ -45,8 +45,17 @@ public class TestStringOperations {
public void testCheckWaitForValue() throws InterruptedException {
TestMessage msg = new TestMessage();
support.activateMsg(msg);
- support.genericTestCheckWaitForValue(msg.STRING_ELEMENT_1, new String[] {"Expected 1", " Expected", "Expected ",
- "", "expected", "EXPECTED", "Expected", "Expected", "01234", "x"}, "abc");
+ support.genericTestCheckWaitForValue(msg.STRING_ELEMENT_1, new String[] {
+ "Expected 1",
+ " Expected",
+ "Expected ",
+ "",
+ "expected",
+ "EXPECTED",
+ "Expected",
+ "Expected",
+ "01234",
+ "x"}, "abc");
}
@Test

Back to the top