1 23 24 29 package com.sun.enterprise.admin.dottedname; 30 31 32 public final class DottedNameFactoryTest extends junit.framework.TestCase 33 { 34 DottedNameFactory.Factory mFactory; 35 36 37 public void 38 setUp() 39 { 40 mFactory = DottedNameFactory.newInstance(); 41 } 42 43 public void 44 testGet() 45 { 46 assertEquals( new DottedName( "domain" ), mFactory.get( "domain" ) ); 47 } 48 49 public void 50 testAdd() 51 { 52 final DottedName dn = new DottedName( "server" ); 53 54 mFactory.add( dn ); 55 56 assert( dn == mFactory.get( dn.toString() ) ); 57 } 58 59 76 77 } 78 79 80 81 | Popular Tags |