Code example for ObjectRetrievalFailureException

0
        ta.verifyAnticipated(); 
    } 
 
    public void testGetTopLevelResourceWithInvalidResourceType() { 
        ThrowableAnticipator ta = new ThrowableAnticipator(); 
        ta.anticipate(new ObjectRetrievalFailureException("Top-level resource type of 'bogus' is unknown", "bogus")); 
 
        m_easyMockUtils.replayAll(); 
        try { 
            m_resourceDao.getTopLevelResource("bogus", ""); 
        } catch (Throwable t) { 
            ta.throwableReceived(t); 
        } 
        m_easyMockUtils.verifyAll(); 
        ta.verifyAnticipated(); 
    } 
     
    public void testGetResourceDomainInterfaceExists() throws IOException { 
        File snmp = m_fileAnticipator.tempDir("snmp"); 
        File domain = m_fileAnticipator.tempDir(snmp, "example1"); 
Contextual code suggestions in your IDE  Get Codota for Java