Code example for PropertyResourceBundle

Methods: getString

0
 
    @BeforeClass 
    public static void bootStrap() throws Exception {
        PropertyResourceBundle prop =
                (PropertyResourceBundle) ResourceBundle.getBundle(PROPERTIES);
        String username = prop.getString("fedora.admin.username");
        String password = prop.getString("fedora.admin.password");
 
        logger.debug("Initialising HttpUtils..."); 
        httpUtils = new HttpUtils(getBaseURL(), username, password);
    } 
     
    @AfterClass 
    public static void cleanUp() { 
        httpUtils.shutdown();
    } 
 
    @Before 
    public void setUp() { 
        try {