gerrithudsontrigger/src/test/java/com/sonyericsson/hudson/plugins/gerrit/trigger/gerritnotifier/model/MemoryImprintTest.java
/**
     * Tests the reset method of the class {@link BuildMemory.MemoryImprint}.
     * With no previous project.
     */
Tests the reset method of the class  BuildMemory.MemoryImprint.
With no previous project.
Tests the reset method of the class BuildMemory . MemoryImprint . With no previous project .
@Test
    public void testResetNoPreviousProject() {
        BuildMemory.MemoryImprint imprint = new BuildMemory.MemoryImprint(Setup.createPatchsetCreated());
        AbstractProject project = mock(AbstractProject.class);
        imprint.reset(project);
        assertEquals(1, imprint.getEntries().length);
        assertEquals(project, imprint.getEntries()[0].getProject());
    }
@ Test public void testResetNoPreviousProject ( ) { BuildMemory . MemoryImprint imprint = new BuildMemory . MemoryImprint ( Setup . createPatchsetCreated ( ) ) ; AbstractProject project = mock ( AbstractProject . class ) ; imprint . reset ( project ) ; assertEquals ( 1 , imprint . getEntries ( ) . length ) ; assertEquals ( project , imprint . getEntries ( ) [ 0 ] . getProject ( ) ) ; }
Tests the reset method of the class {@link BuildMemory.MemoryImprint}.
Tests the reset method of the class { @link BuildMemory . MemoryImprint } .