You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2011/04/18 21:18:58 UTC
svn commit: r1094697 - in
/pivot/trunk/core/test/org/apache/pivot/beans/test: BeanAdapterTest.java
BeanAdapterTestObject.java
Author: smartini
Date: Mon Apr 18 19:18:57 2011
New Revision: 1094697
URL: http://svn.apache.org/viewvc?rev=1094697&view=rev
Log:
JUnit Test case for PIVOT-704, refactoring
Modified:
pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTest.java
pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTestObject.java
Modified: pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTest.java?rev=1094697&r1=1094696&r2=1094697&view=diff
==============================================================================
--- pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTest.java (original)
+++ pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTest.java Mon Apr 18 19:18:57 2011
@@ -101,7 +101,7 @@ public class BeanAdapterTest {
}
System.out.println("target_test.getBd() = " + target_test.getBd());
- assertEquals(src_test.getBd(), target_test.getBd());
+ assertEquals(src_test.getBd().doubleValue(), target_test.getBd().doubleValue(), 0.0001);
}
@Test
@@ -170,7 +170,7 @@ public class BeanAdapterTest {
return;
}
- System.out.println("target_test.getString() = " + target_test.getString());
+ System.out.println("target_test.getString() = \"" + target_test.getString() + "\"");
assertEquals(src_test.getString(), target_test.getString());
}
Modified: pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTestObject.java
URL: http://svn.apache.org/viewvc/pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTestObject.java?rev=1094697&r1=1094696&r2=1094697&view=diff
==============================================================================
--- pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTestObject.java (original)
+++ pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTestObject.java Mon Apr 18 19:18:57 2011
@@ -29,23 +29,23 @@ public class BeanAdapterTestObject {
return bd;
}
- protected BigInteger getBi() {
+ public BigInteger getBi() {
return bi;
}
- protected void setBi(BigInteger bi) {
+ public void setBi(BigInteger bi) {
this.bi = bi;
}
- protected void setBd(BigDecimal bd) {
+ public void setBd(BigDecimal bd) {
this.bd = bd;
}
- protected String getString() {
+ public String getString() {
return string;
}
- protected void setString(String string) {
+ public void setString(String string) {
this.string = string;
}