Code example for PropertyResourceBundle

0
     */ 
    protected void setUp() { 
        java.io.InputStream propertiesStream = new java.io.ByteArrayInputStream(
                "p1=one\np2=two".getBytes());
        try { 
            prb = new PropertyResourceBundle(propertiesStream);
        } catch (java.io.IOException e) {
            fail(
                    "Contruction of PropertyResourceBundle threw IOException"); 
        } 
    } 
 
    /** 
     * Tears down the fixture, for example, close a network connection. This 
     * method is called after a test is executed. 
     */ 
    protected void tearDown() { 
    } 
}