1 6 7 package com.hp.hpl.jena.shared.test; 8 9 import com.hp.hpl.jena.shared.*; 10 import com.hp.hpl.jena.rdf.model.test.*; 11 12 import junit.framework.*; 13 14 20 public class TestReificationStyle extends ModelTestBase 21 { 22 public TestReificationStyle( String name ) 23 { super( name ); } 24 25 public static TestSuite suite() 26 { return new TestSuite( TestReificationStyle.class ); } 27 28 public void testConstructorIntercepts() 29 { assertEquals( true, new ReificationStyle( true, false ).intercepts() ); 30 assertEquals( false, new ReificationStyle( false, false ).intercepts() ); 31 assertEquals( true, new ReificationStyle( true, true ).intercepts() ); 32 assertEquals( false, new ReificationStyle( false, true ).intercepts() ); } 33 34 public void testConstructorConceals() 35 { assertEquals( false, new ReificationStyle( true, false ).conceals() ); 36 assertEquals( false, new ReificationStyle( false, false ).conceals() ); 37 assertEquals( true, new ReificationStyle( true, true ).conceals() ); 38 assertEquals( true, new ReificationStyle( false, true ).conceals() ); } 39 40 public void testConstants() 41 { assertEquals( false, ReificationStyle.Minimal.intercepts() ); 42 assertEquals( true, ReificationStyle.Minimal.conceals() ); 43 assertEquals( true, ReificationStyle.Standard.intercepts() ); 44 assertEquals( false, ReificationStyle.Standard.conceals() ); 45 assertEquals( true, ReificationStyle.Convenient.intercepts() ); 46 assertEquals( true, ReificationStyle.Convenient.conceals() ); } 47 48 public void testPrettyPrinting() 49 { assertEquals( "Minimal", ReificationStyle.Minimal.toString() ); 50 assertEquals( "Convenient", ReificationStyle.Convenient.toString() ); 51 assertEquals( "Standard", ReificationStyle.Standard.toString() ); 52 } 53 } 54 55 | Popular Tags |