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 two previous projects.
     */
Tests the reset method of the class  BuildMemory.MemoryImprint.
With two previous projects.
Tests the reset method of the class BuildMemory . MemoryImprint . With two previous projects .
@Test
    public void testResetTwoPreviousProjects() {
        AbstractProject project = mock(AbstractProject.class);
        BuildMemory.MemoryImprint imprint = new BuildMemory.MemoryImprint(Setup.createPatchsetCreated(), project);
        AbstractProject project2 = mock(AbstractProject.class);
        imprint.set(project2);
        assertEquals(2, imprint.getEntries().length);
        imprint.reset(project);
        assertEquals(2, imprint.getEntries().length);
    }
@ Test public void testResetTwoPreviousProjects ( ) { AbstractProject project = mock ( AbstractProject . class ) ; BuildMemory . MemoryImprint imprint = new BuildMemory . MemoryImprint ( Setup . createPatchsetCreated ( ) , project ) ; AbstractProject project2 = mock ( AbstractProject . class ) ; imprint . set ( project2 ) ; assertEquals ( 2 , imprint . getEntries ( ) . length ) ; imprint . reset ( project ) ; assertEquals ( 2 , imprint . getEntries ( ) . length ) ; }
Tests the reset method of the class {@link BuildMemory.MemoryImprint}.
Tests the reset method of the class { @link BuildMemory . MemoryImprint } .