@Test public void testChangeLogToNow() throws Exception { final ScmFileSet testFileSet = new ScmFileSet( new File( basedir, "project/dir" ) ); List<Transaction> startTransaction = Collections.singletonList( new Transaction( 35L, new Date(), "sometran", "anyone" ) ); when( accurev.history( "aStream", "12", null, 1, true, true ) ).thenReturn( startTransaction ); List<Transaction> endTransaction = Collections.singletonList( new Transaction( 42L, new Date(), "sometran", "anyone" ) ); when( accurev.history( "aStream", "now", null, 1, true, true ) ).thenReturn( endTransaction ); Stream basisStream = new Stream( "aStream", 10, "myDepot", 1, "myDepot", getDate( 2008, 1, 1 ), "normal" ); when( accurev.showStream( "aStream" ) ).thenReturn( basisStream ); List<FileDifference> emptyList = Collections.emptyList(); when( accurev.diff( "myStream", "12", "42" ) ).thenReturn( emptyList ); List<Transaction> noTransactions = Collections.emptyList(); when( accurev.history( "aStream", "13", "42", 0, false, false ) ).thenReturn( noTransactions ); AccuRevChangeLogCommand command = new AccuRevChangeLogCommand( getLogger() ); CommandParameters params = new CommandParameters(); params.setScmVersion( CommandParameter.START_SCM_VERSION, new ScmRevision( "aStream/12" ) ); assertThat( command.changelog( repo, testFileSet, params ), not( nullValue() ) ); }
public ChangeLogScmResult changelog( ScmProviderRepository repo, ScmFileSet testFileSet, CommandParameters params ) throws ScmException { return (ChangeLogScmResult) execute( repo, testFileSet, params ); }
AccuRevChangeLogCommand extends AbstractAccuRevCommand { public ChangeLogScmResult changelog( ScmProviderRepository repo, ScmFileSet testFileSet, CommandParameters params ) throws ScmException { return (ChangeLogScmResult) execute( repo, testFileSet, params ); } }
AccuRevChangeLogCommand extends AbstractAccuRevCommand { public ChangeLogScmResult changelog( ScmProviderRepository repo, ScmFileSet testFileSet, CommandParameters params ) throws ScmException { return (ChangeLogScmResult) execute( repo, testFileSet, params ); } AccuRevChangeLogCommand( ScmLogger logger ); }
AccuRevChangeLogCommand extends AbstractAccuRevCommand { public ChangeLogScmResult changelog( ScmProviderRepository repo, ScmFileSet testFileSet, CommandParameters params ) throws ScmException { return (ChangeLogScmResult) execute( repo, testFileSet, params ); } AccuRevChangeLogCommand( ScmLogger logger ); ChangeLogScmResult changelog( ScmProviderRepository repo, ScmFileSet testFileSet, CommandParameters params ); }
AccuRevChangeLogCommand extends AbstractAccuRevCommand { public ChangeLogScmResult changelog( ScmProviderRepository repo, ScmFileSet testFileSet, CommandParameters params ) throws ScmException { return (ChangeLogScmResult) execute( repo, testFileSet, params ); } AccuRevChangeLogCommand( ScmLogger logger ); ChangeLogScmResult changelog( ScmProviderRepository repo, ScmFileSet testFileSet, CommandParameters params );  }