Package org.e2k

Examples of org.e2k.UserIdentifier$ShipsXMLFileHandler


import org.e2k.Ship;

public class testUserIdentifier extends TestCase {
 
  public void testgetShipDetails()  {
    UserIdentifier uid=new UserIdentifier();
    // Test with
    // <name val='THORNBURY-C6RS7'/>
    // <mmsi val='311168000'/>
    // <flag val='Bahamas'/>
    Ship ship=uid.getShipDetails("311168000");
    // Check the returns
    if (ship==null) fail("No ship found !");
    else if (ship.getName().indexOf("THORNBURY-C6RS7")!=0) fail("Wrong ships name returned !");
    else if (ship.getFlag().indexOf("Bahamas")!=0) fail("Wrong ships name returned !");
  }
View Full Code Here

TOP

Related Classes of org.e2k.UserIdentifier$ShipsXMLFileHandler

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.