gerrithudsontrigger/src/test/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritAdministrativeMonitorTest.java
/**
     * Tests {@link GerritAdministrativeMonitor#getDisabledFeatures()} is false when it should. TODO update this test's
     * version check whenever we get a new feature requiring a newer version.
     *
     * @throws Exception if so.
     */
Tests  GerritAdministrativeMonitor#getDisabledFeatures() is false when it should. TODO update this test's
version check whenever we get a new feature requiring a newer version.

@throws Exception if so.
Tests GerritAdministrativeMonitor#getDisabledFeatures () is false when it should . TODO update this test ' s version check whenever we get a new feature requiring a newer version . @throws Exception if so .
@Test
    public void testHasDisabledFeaturesNot() throws Exception {
        String version = "2.5";
        when(plugin.getGerritVersion()).thenReturn(version);
        GerritAdministrativeMonitor monitor = new GerritAdministrativeMonitor();
        assertFalse(monitor.hasDisabledFeatures());
    }
@ Test public void testHasDisabledFeaturesNot ( ) throws Exception { String version = "2.5" ; when ( plugin . getGerritVersion ( ) ) . thenReturn ( version ) ; GerritAdministrativeMonitor monitor = new GerritAdministrativeMonitor ( ) ; assertFalse ( monitor . hasDisabledFeatures ( ) ) ; }
Tests {@link GerritAdministrativeMonitor#getDisabledFeatures()} is false when it should.
Tests { @link GerritAdministrativeMonitor#getDisabledFeatures () } is false when it should .