gerrithudsontrigger/src/test/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritAdministrativeMonitorTest.java
/**
     * Tests {@link GerritAdministrativeMonitor#getDisabledFeatures()} is true when it should be.
     *
     * @throws Exception if so.
     */
Tests  GerritAdministrativeMonitor#getDisabledFeatures() is true when it should be.
@throws Exception if so.
Tests GerritAdministrativeMonitor#getDisabledFeatures () is true when it should be . @throws Exception if so .
@Test
    public void testHasDisabledFeatures() throws Exception {
        String version = "2.2.2.1";
        when(plugin.getGerritVersion()).thenReturn(version);
        GerritAdministrativeMonitor monitor = new GerritAdministrativeMonitor();
        assertTrue(monitor.hasDisabledFeatures());
    }
@ Test public void testHasDisabledFeatures ( ) throws Exception { String version = "2.2.2.1" ; when ( plugin . getGerritVersion ( ) ) . thenReturn ( version ) ; GerritAdministrativeMonitor monitor = new GerritAdministrativeMonitor ( ) ; assertTrue ( monitor . hasDisabledFeatures ( ) ) ; }
Tests {@link GerritAdministrativeMonitor#getDisabledFeatures()} is true when it should be.
Tests { @link GerritAdministrativeMonitor#getDisabledFeatures () } is true when it should be .