gerrithudsontrigger/src/test/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritAdministrativeMonitorTest.java
/**
     * Tests {@link GerritAdministrativeMonitor#getDisabledFeatures()} is empty for version 2.5. 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 empty for version 2.5. 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 empty for version 2 . 5 . TODO update this test ' s version check whenever we get a new feature requiring a newer version . @throws Exception if so .
@Test
    public void testGetDisabledFeaturesNone() throws Exception {
        String version = "2.5";
        when(plugin.getGerritVersion()).thenReturn(version);
        GerritAdministrativeMonitor monitor = new GerritAdministrativeMonitor();
        List<GerritVersionChecker.Feature> disabledFeatures = monitor.getDisabledFeatures();
        assertTrue(disabledFeatures.isEmpty());
    }
@ Test public void testGetDisabledFeaturesNone ( ) throws Exception { String version = "2.5" ; when ( plugin . getGerritVersion ( ) ) . thenReturn ( version ) ; GerritAdministrativeMonitor monitor = new GerritAdministrativeMonitor ( ) ; List < GerritVersionChecker . Feature > disabledFeatures = monitor . getDisabledFeatures ( ) ; assertTrue ( disabledFeatures . isEmpty ( ) ) ; }
Tests {@link GerritAdministrativeMonitor#getDisabledFeatures()} is empty for version 2.5.
Tests { @link GerritAdministrativeMonitor#getDisabledFeatures () } is empty for version 2 . 5 .