db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker/metadata RepositoryPersistorTest.java
Date Sat, 10 May 2003 10:27:34 GMT
arminw      2003/05/10 03:27:33

  Modified:    src/test/org/apache/ojb/broker/metadata
                        RepositoryPersistorTest.java
  Log:
  add more comparisons
  
  Revision  Changes    Path
  1.12      +7 -0      db-ojb/src/test/org/apache/ojb/broker/metadata/RepositoryPersistorTest.java
  
  Index: RepositoryPersistorTest.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/metadata/RepositoryPersistorTest.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- RepositoryPersistorTest.java	10 May 2003 09:59:31 -0000	1.11
  +++ RepositoryPersistorTest.java	10 May 2003 10:27:33 -0000	1.12
  @@ -4,6 +4,8 @@
   import java.io.FileOutputStream;
   
   import junit.framework.TestCase;
  +import org.apache.ojb.broker.TestHelper;
  +import org.apache.ojb.broker.PBKey;
   
   /**
    * This TestClass tests the RepositoryPersitors facilities for
  @@ -89,6 +91,11 @@
           ConnectionRepository second = persistor.readConnectionRepository(filename);
           int connectionCount2 = second.getAllDescriptor().size();
   
  +        PBKey defaultKey = second.getStandardPBKeyForJcdAlias(TestHelper.DEF_JCD_ALIAS);
  +        assertNotNull(defaultKey);
  +        assertEquals(TestHelper.DEF_KEY, defaultKey);
  +
  +        assertTrue(connectionCount2 > 0);
           assertEquals("read in persisted connection repository should have same number of
classes",
               connectionCount, connectionCount2);
   	}
  
  
  

Mime
View raw message