org.objectweb.jonas.jtests.clients.entity
Class A_Relation

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.objectweb.jonas.jtests.util.JTestCase
                    |
                    +--org.objectweb.jonas.jtests.clients.entity.A_Relation
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
F_Relation_mnbEC2, F_Relation_mnuEC2, F_Relation_mouEC2, F_Relation_ombEC2, F_Relation_omuEC2, F_Relation_oobEC2, F_Relation_oouEC2, F_Relation_pkcompEC2, F_Relation_s1pkcompEC2, F_Relation_s2pkcompEC2, F_Relation_s3pkcompEC2

public abstract class A_Relation
extends JTestCase

This class is used by all tests about relation ships in Entity CMP v2.

Author:
Helene Joanin

Fields inherited from class org.objectweb.jonas.jtests.util.JTestCase
ictx, isInit, jonasName, msgerror, testtorun, utx
 
Constructor Summary
A_Relation(java.lang.String name)
           
 
Method Summary
static int getIntAfterDash(java.lang.String s)
          Return the int which corresponds to the substring after the '-' of the given string.
static java.lang.String getStringBeforeDash(java.lang.String s)
          Return the substring before the '-' of the given string.
 
Methods inherited from class org.objectweb.jonas.jtests.util.JTestCase
debug, getDBEnv, random, setUp, sleep, tearDown, testEmpty, unloadBeans, useBeans
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

A_Relation

public A_Relation(java.lang.String name)
Method Detail

getStringBeforeDash

public static java.lang.String getStringBeforeDash(java.lang.String s)
Return the substring before the '-' of the given string. Ie, return "fred" if the given string is "fred-xxxx".

getIntAfterDash

public static int getIntAfterDash(java.lang.String s)
Return the int which corresponds to the substring after the '-' of the given string. Ie, return 19 if the given string is "fred-19".