| 1 package org.sample.registry.model; 2 3 import junit.framework.*; 4 import org.netbeans.junit.NbTestCase; 5 6 public class SyncUpdateTest extends NbTestCase { 7 8 public SyncUpdateTest(String testName) { 9 super(testName); 10 } 11 12 protected void setUp() throws Exception { 13 } 14 15 protected void tearDown() throws Exception { 16 } 17 18 public void testSyncSimpleTypeElement() throws Exception { 19 RegistryModel model = Util.loadRegistryModel("test1.xml"); 20 ServiceType type = ((Registry)model.getRootComponent()).getKnownTypes().getKnownTypes().get(0); 21 assertEquals("http://www.finance.org/processor", type.getDefinition()); 22 23 Util.setDocumentContentTo(model, "test1_simpleTypeElement.xml"); 24 25 assertEquals("http://www.acme.org/processor", type.getDefinition()); 26 } 27 } 28 | Popular Tags |