- Timestamp:
- 06/02/10 21:12:11 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.bridgedb.server/test/org/bridgedb/server/Test.java
r308 r395 34 34 { 35 35 private IDMapper mapper; 36 private Server server; 36 37 37 38 @Override 38 39 protected void setUp() throws Exception { 40 41 if (server == null) 42 { 43 server = new Server(); 44 server.run(8183, null); 45 } 39 46 if(mapper == null) { 40 47 // Start local service 41 Server server = new Server(); 42 server.run(8183, null); 48 43 49 44 50 // Create a client … … 46 52 mapper = BridgeDb.connect("idmapper-bridgerest:http://localhost:8183/Human"); 47 53 } 54 48 55 } 56 57 49 58 50 public IDMapper getLocalService() { 59 @Override 60 protected void tearDown() throws Exception 61 { 62 // TODO Auto-generated method stub 63 super.tearDown(); 64 server.stop(); 65 } 66 67 68 69 public IDMapper getLocalService() { 51 70 return mapper; 52 71 }
