Examples of UserIdentifier


Examples of org.cyclop.model.UserIdentifier

    }
  }

  @Test
  public void testCreateAndRead_SingleHistoryEntry() {
    UserIdentifier userId = new UserIdentifier(UUID.randomUUID());
    QueryHistory newHistory = new QueryHistory();

    CqlQuery query = new CqlQuery(CqlQueryType.SELECT, "select * from MyTable");
    QueryEntry histEntry = new QueryEntry(query, 6645);
    newHistory.add(histEntry);
View Full Code Here

Examples of org.cyclop.model.UserIdentifier

    }
  }

  @Test
  public void testCreateAndRead_SingleFavouritesEntry() {
    UserIdentifier userId = new UserIdentifier(UUID.randomUUID());
    QueryFavourites newHistory = new QueryFavourites();

    CqlQuery query = new CqlQuery(CqlQueryType.SELECT, "select * from MyTable");
    QueryEntry favEntry = new QueryEntry(query, 234);
    newHistory.addWithSizeCheck(favEntry);
View Full Code Here

Examples of org.cyclop.model.UserIdentifier

    assertEquals(0, storage.getLockRetryCount());
  }

  @Test
  public void testLimitFavourites() {
    UserIdentifier userId = new UserIdentifier(UUID.randomUUID());
    QueryFavourites history = new QueryFavourites();
    {
      for (int i = 0; i < 50; i++) {
        CqlQuery query = new CqlQuery(CqlQueryType.SELECT, "select * from MyTable where id=" + i);
        assertTrue(history.addWithSizeCheck(new QueryEntry(query, 234)));
View Full Code Here

Examples of org.cyclop.model.UserIdentifier

    }
  }

  @Test
  public void testEvictHistory() {
    UserIdentifier userId = new UserIdentifier(UUID.randomUUID());

    {
      QueryHistory history = new QueryHistory();

      for (int i = 0; i < 600; i++) {
View Full Code Here

Examples of org.cyclop.model.UserIdentifier

  @Inject
  private UserManager um;

  @Test(expected = BeanValidationException.class)
  public void testRegisterIdentifier_Validation() {
    um.storeIdentifier(new UserIdentifier(null));
  }
View Full Code Here

Examples of org.e2k.UserIdentifier

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
Copyright © 2018 www.massapi.com. 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.