summaryrefslogtreecommitdiff
path: root/testtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-11 15:58:09 +0200
committerNoel Grandin <noel@peralex.com>2014-08-14 10:59:48 +0200
commitac5954d7c540f34702033d7d951d1d16cb96730a (patch)
tree310ba9698a10c74662de0714db683f932de32b0c /testtools
parent89c0a2b2f65beeb6f42d3334662100a13169a8d6 (diff)
java: remove commented out code
Change-Id: I05c907a38b562231e968c17f14e09ef80e0a6ed1
Diffstat (limited to 'testtools')
-rw-r--r--testtools/source/servicetests/TestBase.java57
-rw-r--r--testtools/source/servicetests/TestService.java73
2 files changed, 6 insertions, 124 deletions
diff --git a/testtools/source/servicetests/TestBase.java b/testtools/source/servicetests/TestBase.java
index 56ef66fe5709..20532ff4d32c 100644
--- a/testtools/source/servicetests/TestBase.java
+++ b/testtools/source/servicetests/TestBase.java
@@ -41,72 +41,15 @@ public abstract class TestBase extends ComplexTestCase {
t.setProp1(0);
assure(t.getProp1() == 0);
assure(t.getProp2() == 2);
- /*try {
- t.getProp3Void();
- failed();
- } catch (VoidPropertyException e) {
- }*/
assure(t.getProp3Long() == 3);
- /*try {
- t.getProp4None();
- failed();
- } catch (OptionalPropertyException e) {
- }*/
assure(t.getProp4Long() == 4);
- /*try {
- t.getProp5None();
- failed();
- } catch (OptionalPropertyException e) {
- }
- try {
- t.getProp5Void();
- failed();
- } catch (VoidPropertyException e) {
- }*/
assure(t.getProp5Long() == 5);
assure(t.getProp6() == 6);
- /*t.clearProp6();
- try {
- t.getProp6();
- failed();
- } catch (VoidPropertyException e) {
- }*/
t.setProp6(0);
assure(t.getProp6() == 0);
- /*try {
- t.getProp7None();
- failed();
- } catch (OptionalPropertyException e) {
- }
- try {
- t.setProp7None(0);
- failed();
- } catch (OptionalPropertyException e) {
- }
- try {
- t.clearProp7None();
- failed();
- } catch (OptionalPropertyException e) {
- }*/
assure(t.getProp7() == 7);
- /*t.clearProp7();
- try {
- t.getProp7();
- failed();
- } catch (VoidPropertyException e) {
- }*/
t.setProp7(0);
assure(t.getProp7() == 0);
- /*try {
- t.getProp8None();
- failed();
- } catch (OptionalPropertyException e) {
- }
- try {
- t.setProp8None(0);
- failed();
- } catch (OptionalPropertyException e) {
- }*/
assure(t.getProp8Long() == 8);
t.setProp8Long(0);
assure(t.getProp8Long() == 0);
diff --git a/testtools/source/servicetests/TestService.java b/testtools/source/servicetests/TestService.java
index 6124aaade59e..8d3c4c5203a5 100644
--- a/testtools/source/servicetests/TestService.java
+++ b/testtools/source/servicetests/TestService.java
@@ -70,101 +70,40 @@ public final class TestService implements XServiceInfo, XSingleComponentFactory
return 2;
}
- /*public int getProp3Void() throws VoidPropertyException {
- throw new VoidPropertyException("Prop3Void", this);
- }*/
-
- public int getProp3Long() /*throws VoidPropertyException*/ {
+ public int getProp3Long(){
return 3;
}
-
- /*public int getProp4None() throws OptionalPropertyException {
- throw new OptionalPropertyException("Prop4None", this);
- }*/
-
- public int getProp4Long() /*throws OptionalPropertyException*/ {
+ public int getProp4Long(){
return 4;
}
- /*public int getProp5None()
- throws OptionalPropertyException, VoidPropertyException
- {
- throw new OptionalPropertyException("Prop4None", this);
- }*/
-
- /*public int getProp5Void()
- throws OptionalPropertyException, VoidPropertyException
- {
- throw new VoidPropertyException("Prop4None", this);
- }*/
-
public int getProp5Long()
- /*throws OptionalPropertyException, VoidPropertyException*/
{
return 5;
}
- public int getProp6() /*throws VoidPropertyException*/ {
- /*if (prop6 == null) {
- throw new VoidPropertyException("Prop6", this);
- } else {*/
+ public int getProp6() {
return prop6.intValue();
- /*}*/
}
public void setProp6(int value) {
prop6 = new Integer(value);
}
- /*public void clearProp6() {
- prop6 = null;
- }*/
-
- /*public int getProp7None()
- throws OptionalPropertyException, VoidPropertyException
- {
- throw new OptionalPropertyException("Prop7None", this);
- }*/
-
- /*public void setProp7None(int value) throws OptionalPropertyException {
- throw new OptionalPropertyException("Prop7None", this);
- }*/
-
- /*public void clearProp7None() throws OptionalPropertyException {
- throw new OptionalPropertyException("Prop7None", this);
- }*/
-
public int getProp7()
- /*throws OptionalPropertyException, VoidPropertyException*/
{
- /*if (prop7 == null) {
- throw new VoidPropertyException("Prop7", this);
- } else {*/
return prop7.intValue();
- /*}*/
}
- public void setProp7(int value) /*throws OptionalPropertyException*/ {
+ public void setProp7(int value) {
prop7 = new Integer(value);
}
- /*public void clearProp7() throws OptionalPropertyException {
- prop7 = null;
- }*/
-
- /*public int getProp8None() throws OptionalPropertyException {
- throw new OptionalPropertyException("Prop8None", this);
- }*/
-
- /*public void setProp8None(int value) throws OptionalPropertyException {
- throw new OptionalPropertyException("Prop8None", this);
- }*/
-
- public int getProp8Long() /*throws OptionalPropertyException*/ {
+ public int getProp8Long() {
return prop8;
}
- public void setProp8Long(int value) /*throws OptionalPropertyException*/
+ public void setProp8Long(int value)
{
prop8 = value;
}