Project

General

Profile

« Previous | Next » 

Revision 7768

Added by Jing Tao over 11 years ago

Use the new name of a method.

View differences:

metacat-common/src/test/java/edu/ucsb/nceas/metacat/common/query/EnabledQueryEnginesTest.java
32 32
    
33 33
    @Test
34 34
    public void testIfEnabled() {
35
        assertTrue("testIfEnabled - the "+EnabledQueryEngines.SOLRENGINE+ " should be enabled", EnabledQueryEngines.getInstance().ifEnabled(EnabledQueryEngines.SOLRENGINE));
36
        assertTrue("testIfEnabled - the "+EnabledQueryEngines.PATHQUERYENGINE+ " should be enabled", EnabledQueryEngines.getInstance().ifEnabled(EnabledQueryEngines.PATHQUERYENGINE));
37
        assertTrue("testIfEnabled - the engine \"yyy\" should not be enabled", !EnabledQueryEngines.getInstance().ifEnabled("yyy"));
35
        assertTrue("testIfEnabled - the "+EnabledQueryEngines.SOLRENGINE+ " should be enabled", EnabledQueryEngines.getInstance().isEnabled(EnabledQueryEngines.SOLRENGINE));
36
        assertTrue("testIfEnabled - the "+EnabledQueryEngines.PATHQUERYENGINE+ " should be enabled", EnabledQueryEngines.getInstance().isEnabled(EnabledQueryEngines.PATHQUERYENGINE));
37
        assertTrue("testIfEnabled - the engine \"yyy\" should not be enabled", !EnabledQueryEngines.getInstance().isEnabled("yyy"));
38 38
    }
39 39
}

Also available in: Unified diff