db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: jakarta-ojb/src/test/org/apache/ojb/broker MetaDataSerializationTest.java Article.java
Date Sun, 26 Jan 2003 12:30:50 GMT
thma        2003/01/26 04:30:50

  Modified:    src/test/org/apache/ojb/broker
                        MetaDataSerializationTest.java Article.java
  Log:
  add support for persistent classes with private and protected constructors only
  
  Revision  Changes    Path
  1.5       +1 -1      jakarta-ojb/src/test/org/apache/ojb/broker/MetaDataSerializationTest.java
  
  Index: MetaDataSerializationTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/test/org/apache/ojb/broker/MetaDataSerializationTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MetaDataSerializationTest.java	24 Dec 2002 14:06:45 -0000	1.4
  +++ MetaDataSerializationTest.java	26 Jan 2003 12:30:50 -0000	1.5
  @@ -50,7 +50,7 @@
        * test serialization and deserialisation of all ClassDescriptors in
        * Descriptor repository
        */
  -    public void testIt() throws Exception
  +    public void testClassDescriptorSerialization() throws Exception
       {
           DescriptorRepository repository = MetadataManager.getInstance().getRepository();
           Iterator iter = repository.iterator();
  
  
  
  1.3       +8 -0      jakarta-ojb/src/test/org/apache/ojb/broker/Article.java
  
  Index: Article.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/test/org/apache/ojb/broker/Article.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Article.java	8 Oct 2002 14:09:04 -0000	1.2
  +++ Article.java	26 Jan 2003 12:30:50 -0000	1.3
  @@ -2,4 +2,12 @@
   
   public class Article extends AbstractArticle implements InterfaceArticle, java.io.Serializable
   {
  +	protected Article()
  +	{
  +	}
  +	
  +	public static Article createInstance()
  +	{
  +		return new Article();
  +	}
   }
  
  
  

Mime
View raw message