incubator-imperius-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jnee...@apache.org
Subject svn commit: r663959 - in /incubator/imperius/trunk/javaspl-samples: resources/samples/simple/policies/SimplePolicy.spl src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/TestElement.java
Date Fri, 06 Jun 2008 14:33:10 GMT
Author: jneeraj
Date: Fri Jun  6 07:33:10 2008
New Revision: 663959

URL: http://svn.apache.org/viewvc?rev=663959&view=rev
Log:
Added a test case for access private variables

Modified:
    incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/SimplePolicy.spl
    incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/TestElement.java

Modified: incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/SimplePolicy.spl
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/SimplePolicy.spl?rev=663959&r1=663958&r2=663959&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/SimplePolicy.spl
(original)
+++ incubator/imperius/trunk/javaspl-samples/resources/samples/simple/policies/SimplePolicy.spl
Fri Jun  6 07:33:10 2008
@@ -28,7 +28,7 @@
 Condition 
 {  
 
-     SquareRoot(16) == four
+     SquareRoot(16) == four && te.privateVariable == 0
 }
 Decision 
 {   

Modified: incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/TestElement.java
URL: http://svn.apache.org/viewvc/incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/TestElement.java?rev=663959&r1=663958&r2=663959&view=diff
==============================================================================
--- incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/TestElement.java
(original)
+++ incubator/imperius/trunk/javaspl-samples/src/main/java/org/apache/imperius/javaspl/samples/simplepolicies/TestElement.java
Fri Jun  6 07:33:10 2008
@@ -35,6 +35,17 @@
 	public short s16;
 	public byte s8;
 	public boolean b;
+	private int privateVariable;
+	
+	public void setPrivateVariable(int s)
+	{
+	    privateVariable = s;
+	}
+	
+	public int getPrivateVariable()
+	{
+	    return privateVariable;
+	}
 
 	public String childProperty;
     



Mime
View raw message