Examples of absolutePath()


Examples of java.util.prefs.Preferences.absolutePath()

    assertTrue(p instanceof AbstractPreferences);
    assertEquals("/", p.absolutePath());
    assertSame(null, p.parent());
    assertFalse(p.isUserNode());
    assertEquals("", p.name());
    assertEquals("System Preference Node: " + p.absolutePath(), p
        .toString());
    // assertEquals(0, p.childrenNames().length);
    // assertEquals(0, p.keys().length);
  }
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

    assertEquals(8192, Preferences.MAX_VALUE_LENGTH);
  }

  public void testUserNodeForPackage() throws BackingStoreException {
    Preferences p = Preferences.userNodeForPackage(Object.class);
    assertEquals("/java/lang", p.absolutePath());
    assertTrue(p instanceof AbstractPreferences);
    Preferences root = Preferences.userRoot();
    Preferences parent = root.node("java");
    assertSame(parent, p.parent());
    assertTrue(p.isUserNode());
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

  }

  public void testUserRoot() throws BackingStoreException {
    Preferences p = Preferences.userRoot();
    assertTrue(p instanceof AbstractPreferences);
    assertEquals("/", p.absolutePath());
    assertSame(null, p.parent());
    assertTrue(p.isUserNode());
    assertEquals("", p.name());
    assertEquals("User Preference Node: " + p.absolutePath(), p.toString());
    // assertEquals(0, p.childrenNames().length);
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

    assertTrue(p instanceof AbstractPreferences);
    assertEquals("/", p.absolutePath());
    assertSame(null, p.parent());
    assertTrue(p.isUserNode());
    assertEquals("", p.name());
    assertEquals("User Preference Node: " + p.absolutePath(), p.toString());
    // assertEquals(0, p.childrenNames().length);
    // assertEquals(p.keys().length, 0);
  }

  public void testImportPreferences() throws Exception {
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

    }
  }

  public void testAbstractMethods() {
    Preferences p = new MockPreferences();
    p.absolutePath();
    try {
      p.childrenNames();
    } catch (BackingStoreException e4) {
    }
    try {
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

            log.debug("Added group preferences node: " + fullPath);
        }
        try
        {
            if ((null != preferences)
                    && preferences.absolutePath().equals(fullPath))
            {
                // Add role principal.
                groupSecurityHandler.setGroupPrincipal(groupPrincipal);
                if (log.isDebugEnabled())
                {
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

                .getPreferencesFullPath(userPrincipal));
        assertEquals("expected user principal name == test", "test", userPrincipal.getName());

        // Test the User Preferences.
        Preferences preferences = user.getPreferences();
        assertEquals("expected user node == /user/test", "/user/test", preferences.absolutePath());
    }

    /**
     * <p>
     * Test get users in role.
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

            log.debug("Added user preferences node: " + fullPath);
        }
        try
        {
            if ((null != preferences)
                    && preferences.absolutePath().equals(fullPath))
            {
                // Add user principal.
                atnProviderProxy.addUserPrincipal(userPrincipal);
                if (password != null)
                {
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

                            try
                            {
                                propertyKeys = userInfoPrefs.keys();
                                if ((null != propertyKeys) && log.isDebugEnabled())
                                {
                                    log.debug("Found " + propertyKeys.length + " children for " + userInfoPrefs.absolutePath());
                                }
                            }
                            catch (BackingStoreException bse)
                            {
                                log.error("BackingStoreException: " + bse.toString());
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

            log.debug("Added user preferences node: " + fullPath);
        }
        try
        {
            if ((null != preferences)
                    && preferences.absolutePath().equals(fullPath))
            {
                // Add user principal.
                atnProviderProxy.addUserPrincipal(userPrincipal);
                if (password != null)
                {
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.