コード例 #1
0
ファイル: CVSSCMTest.java プロジェクト: hedrickbt/cvs-plugin
  @Test
  public void testCompareRemoteRevisionWithAllExcluded() throws IOException, InterruptedException {
    CVSSCM scm =
        new CVSSCM(
            CVSROOT,
            "module",
            BRANCH,
            null,
            true,
            true,
            false,
            "src/main/web/.*\\.java\nsrc/main/web/.*\\.xml") {
          @Override
          List<String> update(
              ModuleLocation moduleLocation,
              boolean dryRun,
              Launcher launcher,
              FilePath workspace,
              TaskListener listener,
              Date date)
              throws IOException, InterruptedException {
            return newArrayList("src/main/web/pom.xml", "src/main/web/Test2.java");
          }

          @Override
          String isUpdatable(ModuleLocation location, FilePath dir)
              throws IOException, InterruptedException {
            return null;
          }
        };
    PollingResult result = scm.compareRemoteRevisionWith(null, null, null, null, null);
    assertEquals(result, PollingResult.NO_CHANGES);
  }