incubator-bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1080658 - /incubator/bval/sandbox/lang3-work/bval-jsr303d/src/test/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerTest.java
Date Fri, 11 Mar 2011 16:44:37 GMT
Author: mbenson
Date: Fri Mar 11 16:44:37 2011
New Revision: 1080658

URL: http://svn.apache.org/viewvc?rev=1080658&view=rev
Log:
refer to the DynamicValidatorContext as such

Modified:
    incubator/bval/sandbox/lang3-work/bval-jsr303d/src/test/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerTest.java

Modified: incubator/bval/sandbox/lang3-work/bval-jsr303d/src/test/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerTest.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/lang3-work/bval-jsr303d/src/test/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerTest.java?rev=1080658&r1=1080657&r2=1080658&view=diff
==============================================================================
--- incubator/bval/sandbox/lang3-work/bval-jsr303d/src/test/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerTest.java
(original)
+++ incubator/bval/sandbox/lang3-work/bval-jsr303d/src/test/java/org/apache/bval/jsr303/dynamic/DynamicMetaGraphManagerTest.java
Fri Mar 11 16:44:37 2011
@@ -31,18 +31,17 @@ import org.junit.Before;
 import org.junit.Test;
 
 /**
- * Test the {@link DynamicMetaGraphManager} implementation of
- * {@link DynamicValidatorContext}.
- *
+ * Test the {@link DynamicMetaGraphManager} implementation of {@link DynamicValidatorContext}.
+ * 
  * @version $Rev$ $Date$
  */
 public class DynamicMetaGraphManagerTest {
 
-    private DynamicMetaGraphManager metaGraphManager;
+    private DynamicValidatorContext dynamicValidatorContext;
 
     @Before
     public void setup() {
-        metaGraphManager =
+        dynamicValidatorContext =
             Validation
                 .byProvider(ApacheValidationProvider.class)
                 .configure()
@@ -54,26 +53,30 @@ public class DynamicMetaGraphManagerTest
 
     @Test
     public void testGetMetaBean() {
-        assertNotNull(metaGraphManager.writable().getMetaBean(Book.class));
-        assertNotNull(metaGraphManager.readOnly().getMetaBean(Book.class));
+        assertNotNull(dynamicValidatorContext.writable().getMetaBean(Book.class));
+        assertNotNull(dynamicValidatorContext.readOnly().getMetaBean(Book.class));
     }
 
     @Test
     public void testGetRootMeta() {
-        assertThat(metaGraphManager.writable().getMeta(Book.class, ""), is(MetaBean.class));
-        assertThat(metaGraphManager.readOnly().getMeta(Book.class, ""), is(MetaBean.class));
+        assertThat(dynamicValidatorContext.writable().getMeta(Book.class, ""), is(MetaBean.class));
+        assertThat(dynamicValidatorContext.readOnly().getMeta(Book.class, ""), is(MetaBean.class));
     }
 
     @Test
     public void testGetImmediateProperty() {
-        assertThat(metaGraphManager.writable().getMeta(Book.class, "title"), is(MetaProperty.class));
-        assertThat(metaGraphManager.readOnly().getMeta(Book.class, "title"), is(MetaProperty.class));
+        assertThat(dynamicValidatorContext.writable().getMeta(Book.class, "title"), is(MetaProperty.class));
+        assertThat(dynamicValidatorContext.readOnly().getMeta(Book.class, "title"), is(MetaProperty.class));
     }
 
     @Test
     public void testGetNestedProperty() {
-        assertThat(metaGraphManager.writable().getMeta(Book.class, "author.addresses[].city"),
is(MetaProperty.class));
-        assertThat(metaGraphManager.readOnly().getMeta(Book.class, "author.addresses[].city"),
is(MetaProperty.class));
-        assertThat(metaGraphManager.readOnly().getMeta(Book.class, "author.addresses[0].city"),
is(MetaProperty.class));
+        assertThat(dynamicValidatorContext.writable().getMeta(Book.class, "author.addresses[].city"),
+            is(MetaProperty.class));
+        assertThat(dynamicValidatorContext.readOnly().getMeta(Book.class, "author.addresses[].city"),
+            is(MetaProperty.class));
+        assertThat(dynamicValidatorContext.readOnly().getMeta(Book.class, "author.addresses[0].city"),
+            is(MetaProperty.class));
     }
+
 }



Mime
View raw message