Skip to content

Commit

Permalink
Add test case for issue reported on the mailing list (currently ignor…
Browse files Browse the repository at this point in the history
…ed as it fails the buld)
  • Loading branch information
lacostej committed Aug 19, 2011
1 parent 36e2ab5 commit b7f265a
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -21,6 +21,7 @@
import java.util.TimeZone;

import org.junit.After;
import org.junit.Ignore;
import org.junit.Test;
import org.jvnet.hudson.test.Bug;

Expand Down Expand Up @@ -172,6 +173,17 @@ public void assertParseExceptionWhenParsingBadFilePath() throws Exception {
command.parse(reader);
}

@Test
@Ignore("Fix the regular expression")
public void assertCanParseGermanChangesetWithCheckinNotes() throws Exception {
InputStreamReader reader = new InputStreamReader(DetailedHistoryCommandTest.class.getResourceAsStream("tf-changeset-german-1.txt"));
DetailedHistoryCommand command = new DetailedHistoryCommand(mock(ServerConfigurationProvider.class), "$/tfsandbox", Util.getCalendar(2011, 07, 10), Calendar.getInstance());
List<ChangeSet> list = command.parse(reader);

assertNotNull("The list of change sets was null", list);
assertEquals("The number of change sets in the list was incorrect", 1, list.size());
}

@Test
public void assertNoCrashForIssue3683() throws Exception {
InputStreamReader reader = new InputStreamReader(DetailedHistoryCommandTest.class.getResourceAsStream("issue-3683.txt"));
Expand Down

0 comments on commit b7f265a

Please sign in to comment.