Package org.eclipse.orion.internal.server.core.metastore

Examples of org.eclipse.orion.internal.server.core.metastore.SimpleMetaStoreUserPropertyCache.register()


  public void testAddAllUsers() throws CoreException {
    // create a user property cache for a property
    SimpleMetaStoreUserPropertyCache userPropertyCache = new SimpleMetaStoreUserPropertyCache();
    List<String> propertyKeys = new ArrayList<String>();
    propertyKeys.add(UserConstants2.USER_NAME);
    userPropertyCache.register(propertyKeys);
    assertTrue(userPropertyCache.isRegistered(UserConstants2.USER_NAME));

    // add some users to the cache
    String users[] = {"anthony", "ahunter", "anthonyh"};
    List<String> userList = new ArrayList<String>(Arrays.asList(users));
View Full Code Here


  public void testAddUserProperty() throws CoreException {
    // create a user property cache for a property
    SimpleMetaStoreUserPropertyCache userPropertyCache = new SimpleMetaStoreUserPropertyCache();
    List<String> propertyKeys = new ArrayList<String>();
    propertyKeys.add("property");
    userPropertyCache.register(propertyKeys);
    assertTrue(userPropertyCache.isRegistered("property"));

    // add a property value and ensure it is in the cache
    userPropertyCache.add("property", "value", "user");
    assertEquals("user", userPropertyCache.readUserByProperty("property", "value", false, false));
View Full Code Here

  public void testDeleteUser() throws CoreException {
    // create a user property cache for a property
    SimpleMetaStoreUserPropertyCache userPropertyCache = new SimpleMetaStoreUserPropertyCache();
    List<String> propertyKeys = new ArrayList<String>();
    propertyKeys.add("property");
    userPropertyCache.register(propertyKeys);
    assertTrue(userPropertyCache.isRegistered("property"));

    // add a property value and ensure it is in the cache
    userPropertyCache.add("property", "value", "user");
    assertEquals("user", userPropertyCache.readUserByProperty("property", "value", false, false));
View Full Code Here

  public void testDeleteUserProperty() throws CoreException {
    // create a user property cache for a property
    SimpleMetaStoreUserPropertyCache userPropertyCache = new SimpleMetaStoreUserPropertyCache();
    List<String> propertyKeys = new ArrayList<String>();
    propertyKeys.add("property");
    userPropertyCache.register(propertyKeys);
    assertTrue(userPropertyCache.isRegistered("property"));

    // add a property value and ensure it is in the cache
    userPropertyCache.add("property", "value", "user");
    assertEquals("user", userPropertyCache.readUserByProperty("property", "value", false, false));
View Full Code Here

  public void testUpdateUserProperty() throws CoreException {
    // create a user property cache for a property
    SimpleMetaStoreUserPropertyCache userPropertyCache = new SimpleMetaStoreUserPropertyCache();
    List<String> propertyKeys = new ArrayList<String>();
    propertyKeys.add("property");
    userPropertyCache.register(propertyKeys);
    assertTrue(userPropertyCache.isRegistered("property"));

    // add a property value and ensure it is in the cache
    userPropertyCache.add("property", "value", "user");
    assertEquals("user", userPropertyCache.readUserByProperty("property", "value", false, false));
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.