1.1 --- a/vm/src/test/java/org/apidesign/vm4brwsr/InstanceTest.java Sun Dec 02 21:00:12 2012 +0100
1.2 +++ b/vm/src/test/java/org/apidesign/vm4brwsr/InstanceTest.java Tue Dec 04 09:16:53 2012 +0100
1.3 @@ -29,42 +29,42 @@
1.4 @Test public void verifyDefaultDoubleValue() throws Exception {
1.5 assertExec(
1.6 "Will be zero",
1.7 - Instance.class, "defaultDblValueD",
1.8 + Instance.class, "defaultDblValue__D",
1.9 Double.valueOf(0)
1.10 );
1.11 }
1.12 @Test public void verifyStaticMethodCall() throws Exception {
1.13 assertExec(
1.14 "Will be zero",
1.15 - InstanceSub.class, "recallDblD",
1.16 + InstanceSub.class, "recallDbl__D",
1.17 Double.valueOf(0)
1.18 );
1.19 }
1.20 @Test public void verifyAssignedByteValue() throws Exception {
1.21 assertExec(
1.22 "Will one thirty one",
1.23 - Instance.class, "assignedByteValueB",
1.24 + Instance.class, "assignedByteValue__B",
1.25 Double.valueOf(31)
1.26 );
1.27 }
1.28 @Test public void verifyMagicOne() throws Exception {
1.29 assertExec(
1.30 "Should be three and something",
1.31 - Instance.class, "magicOneD",
1.32 + Instance.class, "magicOne__D",
1.33 Double.valueOf(3.3)
1.34 );
1.35 }
1.36 @Test public void verifyInstanceMethods() throws Exception {
1.37 assertExec(
1.38 "Should be eleven as we invoke overwritten method, plus 44",
1.39 - Instance.class, "virtualBytesI",
1.40 + Instance.class, "virtualBytes__I",
1.41 Double.valueOf(55)
1.42 );
1.43 }
1.44 @Test public void verifyInterfaceMethods() throws Exception {
1.45 assertExec(
1.46 "Retruns default value",
1.47 - Instance.class, "interfaceBytesF",
1.48 + Instance.class, "interfaceBytes__F",
1.49 Double.valueOf(31)
1.50 );
1.51 }
1.52 @@ -72,7 +72,7 @@
1.53 @Test public void isNull() throws Exception {
1.54 assertExec(
1.55 "Yes, we are instance",
1.56 - Instance.class, "isNullZ",
1.57 + Instance.class, "isNull__Z",
1.58 Double.valueOf(0.0)
1.59 );
1.60 }
1.61 @@ -80,7 +80,7 @@
1.62 @Test public void isInstanceOf() throws Exception {
1.63 assertExec(
1.64 "Yes, we are instance",
1.65 - Instance.class, "instanceOfZZ",
1.66 + Instance.class, "instanceOf__ZZ",
1.67 Double.valueOf(1.0), true
1.68 );
1.69 }
1.70 @@ -88,7 +88,7 @@
1.71 @Test public void notInstanceOf() throws Exception {
1.72 assertExec(
1.73 "No, we are not an instance",
1.74 - Instance.class, "instanceOfZZ",
1.75 + Instance.class, "instanceOf__ZZ",
1.76 Double.valueOf(0.0), false
1.77 );
1.78 }
1.79 @@ -96,14 +96,14 @@
1.80 @Test public void verifyCastToClass() throws Exception {
1.81 assertExec(
1.82 "Five signals all is good",
1.83 - Instance.class, "castsWorkIZ",
1.84 + Instance.class, "castsWork__IZ",
1.85 Double.valueOf(5.0), false
1.86 );
1.87 }
1.88 @Test public void verifyCastToInterface() throws Exception {
1.89 assertExec(
1.90 "Five signals all is good",
1.91 - Instance.class, "castsWorkIZ",
1.92 + Instance.class, "castsWork__IZ",
1.93 Double.valueOf(5.0), true
1.94 );
1.95 }
1.96 @@ -111,7 +111,7 @@
1.97 @Test public void sharedConstructor() throws Exception {
1.98 assertExec(
1.99 "Constructor of first and 2nd instance should be the same",
1.100 - Instance.class, "sharedConstructorZ",
1.101 + Instance.class, "sharedConstructor__Z",
1.102 Double.valueOf(1.0)
1.103 );
1.104 }
1.105 @@ -119,7 +119,7 @@
1.106 @Test public void differentConstructor() throws Exception {
1.107 assertExec(
1.108 "Constructor of X and Y should be the different",
1.109 - Instance.class, "differentConstructorZ",
1.110 + Instance.class, "differentConstructor__Z",
1.111 Double.valueOf(0)
1.112 );
1.113 }
1.114 @@ -127,7 +127,7 @@
1.115 @Test public void jsObjectIsLikeJavaObject() throws Exception {
1.116 assertExec(
1.117 "JavaScript object is instance of Java Object",
1.118 - Instance.class, "iofObjectZ",
1.119 + Instance.class, "iofObject__Z",
1.120 Double.valueOf(1)
1.121 );
1.122 }