1 package org.jacorb.test.common; 2 3 23 24 import junit.framework.*; 25 26 33 public class JacORBTestCase extends TestCase implements JacORBTest 34 { 35 private TestAnnotations annotations = null; 36 37 public JacORBTestCase (String name) 38 { 39 super(name); 40 String clientVersion = System.getProperty ("jacorb.test.client.version", 41 "cvs"); 42 String serverVersion = System.getProperty ("jacorb.test.server.version", 43 "cvs"); 44 if (!clientVersion.equals("cvs") || !serverVersion.equals("cvs")) 45 { 46 annotations = TestAnnotations.forTestCase (this); 47 } 48 } 49 50 54 public boolean isApplicableTo (String clientVersion, String serverVersion) 55 { 56 if (annotations == null) 57 return true; 58 else 59 { 60 boolean result = annotations.isApplicableTo (clientVersion, 61 serverVersion); 62 if (!result) System.out.println ("not applicable: " + getName()); 63 return result; 64 } 65 } 66 67 } 68 | Popular Tags |