Package xnap.plugin.nap.net

Examples of xnap.plugin.nap.net.ServerVersion



    public String getData(ServerVersion version)
    {
  if (ht != null) {
      ServerVersion sv = version.getNextVersion();
      while (sv != null) {
    Object d = ht.get(sv);
    if (d != null) {
        return (String)d;
    }
    else {
        sv = sv.getNextVersion();
    }
      }
  }

  return data;
View Full Code Here


  return new TestSuite(ServerVersionTest.class);
    }

    public void testFallback()
    {
  ServerVersion v = new ServerVersion("foo");
  Assert.assertEquals(v.getNextVersion(), ServerVersion.OPENNAP044);
    }
View Full Code Here

  Assert.assertEquals(v.getNextVersion(), ServerVersion.OPENNAP044);
    }

    public void testRecognize()
    {
  ServerVersion v = new ServerVersion("opennap 0.45");
  Assert.assertEquals(v.getNextVersion(), ServerVersion.OPENNAP044);
  Assert.assertTrue(v.isCompatibleTo(ServerVersion.OPENNAP044));

  Assert.assertTrue(ServerVersion.OPENNAP044.isCompatibleTo
        (ServerVersion.OPENNAP044));
    }
View Full Code Here

        (ServerVersion.OPENNAP044));
    }

    public void testSlavanap()
    {
  ServerVersion v = new ServerVersion("SlavaNap 2.1.1");
  Assert.assertEquals(v.getNextVersion(), ServerVersion.SLAVANAP2);
    }
View Full Code Here

TOP

Related Classes of xnap.plugin.nap.net.ServerVersion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.