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");
        String fedoraUrl = prop.getString("fedora.url");
        logger.debug("Initialising HttpUtils..."); 
        httpUtils = new HttpUtils(fedoraUrl, username, password);
    } 
     
    @AfterClass 
    public static void cleanUp() { 
        httpUtils.shutdown();
    } 
 
 
 
    @Before 
Contextual code suggestions in your IDE  Get Codota for Java