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