Skip to Content.
Sympa Menu

perfsonar-dev - [pS-dev] [GEANT/SA2/ps-java-services] r6141 - trunk/psBase3/perfsonar-base/src/test/java/net/geant/perfsonar

Subject: perfsonar development work

List archive

[pS-dev] [GEANT/SA2/ps-java-services] r6141 - trunk/psBase3/perfsonar-base/src/test/java/net/geant/perfsonar


Chronological Thread 
  • From:
  • To:
  • Subject: [pS-dev] [GEANT/SA2/ps-java-services] r6141 - trunk/psBase3/perfsonar-base/src/test/java/net/geant/perfsonar
  • Date: Thu, 14 Feb 2013 15:44:35 +0000 (GMT)
  • Authentication-results: sfpop-ironport04.merit.edu; dkim=neutral (message not signed) header.i=none

Author: psnc.pietrzak
Date: 2013-02-14 15:44:35 +0000 (Thu, 14 Feb 2013)
New Revision: 6141

Removed:

trunk/psBase3/perfsonar-base/src/test/java/net/geant/perfsonar/LSRegistrationTest.java
Log:
Removed unncessary test case.

Deleted:
trunk/psBase3/perfsonar-base/src/test/java/net/geant/perfsonar/LSRegistrationTest.java
===================================================================
---
trunk/psBase3/perfsonar-base/src/test/java/net/geant/perfsonar/LSRegistrationTest.java
2013-02-14 15:33:14 UTC (rev 6140)
+++
trunk/psBase3/perfsonar-base/src/test/java/net/geant/perfsonar/LSRegistrationTest.java
2013-02-14 15:44:35 UTC (rev 6141)
@@ -1,53 +0,0 @@
-package net.geant.perfsonar;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
-import net.geant.perfsonar.helpers.MockLSService;
-import net.geant.perfsonar.mp.sshtelnet.SSHTelnetMPService;
-import net.geant.perfsonar.mp.sshtelnet.ServiceController;
-
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
-public class LSRegistrationTest {
- private static final String LS_URL =
"http://localhost:9000/perfsonar-ls";;
-
- private PerfSONAR service = new SSHTelnetMPService();
-
- private LSRegistrationTask task = new LSRegistrationTask(getLogger(),
service);
-
- private MockLSService ls;
-
- @Before
- public void givenLookupService() {
- ls = new MockLSService();
- ls.publish(LS_URL);
- }
-
- private Logger getLogger() {
- return new Logger() {
- public void error(String message, Throwable ex) {
- fail(message + " " + ex);
- }
- };
- }
-
- @After
- public void stopLookupService() {
- ls.stop();
- }
-
- @Test
- public void registerToLookupService() throws Exception {
-
Configuration.configure(LSRegistrationTask.registerToLookupService(
-
ServiceController.class).listAvailableRoutersAndCommands());
-
- task.registerToLookupService(LS_URL);
- task.registerToLookupService(LS_URL);
- task.registerToLookupService(LS_URL);
-
- assertEquals(2, ls.getKeepAliveCount());
- assertEquals(1, ls.getRegisterCount());
- }
-}



  • [pS-dev] [GEANT/SA2/ps-java-services] r6141 - trunk/psBase3/perfsonar-base/src/test/java/net/geant/perfsonar, svn-noreply, 02/14/2013

Archive powered by MHonArc 2.6.16.

Top of Page