1 package org.mmbase.storage.search.implementation; 2 3 import junit.framework.*; 4 import org.mmbase.module.core.*; 5 import org.mmbase.storage.search.*; 6 7 13 public class BasicConstraintTest extends TestCase { 14 15 16 private BasicConstraint instance = null; 17 18 public BasicConstraintTest(java.lang.String testName) { 19 super(testName); 20 } 21 22 public static void main(java.lang.String [] args) { 23 junit.textui.TestRunner.run(suite()); 24 } 25 26 29 public void setUp() throws Exception { 30 MMBaseContext.init(); 31 MMBase.getMMBase(); 32 instance = new BasicConstraint(); 33 } 34 35 38 public void tearDown() throws Exception {} 39 40 41 public void testSetInverse() { 42 assertTrue(!instance.isInverse()); 44 45 BasicConstraint result = instance.setInverse(true); 46 assertTrue(instance.isInverse()); 47 assertTrue(result == instance); 48 } 49 50 51 public void testIsInverse() { 52 testSetInverse(); 54 } 55 56 57 public void testEquals() { 58 } 60 61 62 public void testHashCode() { 63 } 65 66 67 public void testGetBasicSupportLevel() { 68 assertTrue(instance.getBasicSupportLevel() == SearchQueryHandler.SUPPORT_OPTIMAL); 70 } 71 72 public static Test suite() { 73 TestSuite suite = new TestSuite(BasicConstraintTest.class); 74 75 return suite; 76 } 77 78 } 79 | Popular Tags |