org.equanda.generate
Class LinksTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.equanda.generate.LinksTest
All Implemented Interfaces:
junit.framework.Test

public class LinksTest
extends junit.framework.TestCase

Checks for invalid and valid links

Author:
NetRom team

Constructor Summary
LinksTest()
           
 
Method Summary
protected  void setUp()
           
 void testAllowDeleteFieldNotLink()
           
 void testBidirectionalLinksBothRequired()
           
 void testCascadeDeleteFieldNotLink()
           
 void testCascadeDeleteMultiple()
           
 void testCascadeDeleteNotBidirectional()
           
 void testCascadeKeepFieldNotLink()
           
 void testLinkName2Times()
           
 void testLinkNameDifferentRelations1()
           
 void testLinkNameDifferentRelations2()
           
 void testLinksWithSuggest()
           
 void testOtherSideMultipleIncorrect()
           
 void testOtherSideSingleFieldNotLink()
           
 void testOtherSideSingleIncorrect()
           
 void testUseRelationTableFieldMultiple()
           
 void testUseRelationTableFieldNotLink()
           
 void testUseRelationTableNotBidirectional()
           
 void testUseRelationTableOtherSideSingle()
           
 void testValidLinks()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, 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

LinksTest

public LinksTest()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

testOtherSideSingleFieldNotLink

public void testOtherSideSingleFieldNotLink()
                                     throws Exception
Throws:
Exception

testOtherSideSingleIncorrect

public void testOtherSideSingleIncorrect()
                                  throws Exception
Throws:
Exception

testOtherSideMultipleIncorrect

public void testOtherSideMultipleIncorrect()
                                    throws Exception
Throws:
Exception

testLinkName2Times

public void testLinkName2Times()
                        throws Exception
Throws:
Exception

testLinkNameDifferentRelations1

public void testLinkNameDifferentRelations1()
                                     throws Exception
Throws:
Exception

testLinkNameDifferentRelations2

public void testLinkNameDifferentRelations2()
                                     throws Exception
Throws:
Exception

testUseRelationTableFieldNotLink

public void testUseRelationTableFieldNotLink()
                                      throws Exception
Throws:
Exception

testUseRelationTableFieldMultiple

public void testUseRelationTableFieldMultiple()
                                       throws Exception
Throws:
Exception

testUseRelationTableOtherSideSingle

public void testUseRelationTableOtherSideSingle()
                                         throws Exception
Throws:
Exception

testCascadeDeleteFieldNotLink

public void testCascadeDeleteFieldNotLink()
                                   throws Exception
Throws:
Exception

testCascadeKeepFieldNotLink

public void testCascadeKeepFieldNotLink()
                                 throws Exception
Throws:
Exception

testAllowDeleteFieldNotLink

public void testAllowDeleteFieldNotLink()
                                 throws Exception
Throws:
Exception

testCascadeDeleteNotBidirectional

public void testCascadeDeleteNotBidirectional()
                                       throws Exception
Throws:
Exception

testCascadeDeleteMultiple

public void testCascadeDeleteMultiple()
                               throws Exception
Throws:
Exception

testValidLinks

public void testValidLinks()
                    throws Exception
Throws:
Exception

testUseRelationTableNotBidirectional

public void testUseRelationTableNotBidirectional()
                                          throws Exception
Throws:
Exception

testLinksWithSuggest

public void testLinksWithSuggest()
                          throws Exception
Throws:
Exception

testBidirectionalLinksBothRequired

public void testBidirectionalLinksBothRequired()
                                        throws Exception
Throws:
Exception


Copyright © 2007-2009. All Rights Reserved.