Package org.cyclop.model

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


    }
  }

  @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

    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

    }
  }

  @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

  @Inject
  private UserManager um;

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

TOP

Related Classes of org.cyclop.model.UserIdentifier

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.