Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
add in comment for xliff test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Oct 30, 2012
1 parent 0c220b6 commit 15f6d60
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -100,14 +100,16 @@ public void leadingEndingWhiteSpaceSourceTest() throws FileNotFoundException

TextFlow tf = resource.getTextFlows().get(resource.getTextFlows().size() - 1);
assertThat(tf.getContents(), equalTo(asList(" Translation Unit 5 (4 < 5 & 4 > 3) ")));
assertThat(tf.getContents(), not(equalTo(asList("Translation Unit 5 (4 < 5 & 4 > 3)"))));
assertThat(tf.getContents(), not(equalTo(asList(" Translation Unit 5 (4 < 5 & 4 > 3)"))));
assertThat(tf.getContents(), not(equalTo(asList("Translation Unit 5 (4 < 5 & 4 > 3) "))));
assertThat(tf.getContents(), not(equalTo(asList("Translation Unit 5 (4 &lt; 5 &amp; 4 &gt; 3)"))));
assertThat(tf.getContents(), not(equalTo(asList(" Translation Unit 5 (4 &lt; 5 &amp; 4 &gt; 3)"))));
assertThat(tf.getContents(), not(equalTo(asList("Translation Unit 5 (4 &lt; 5 &amp; 4 &gt; 3) "))));
}

@Test(expectedExceptions = RuntimeException.class)
public void invalidSourceContentElementTest() throws FileNotFoundException
{
// expect RuntimeException with tu:transunit2 - source

File fileTarget = new File(TEST_DIR, "/StringResource_de2.xml");
InputSource inputSource = new InputSource(new FileInputStream(fileTarget));
Resource resource = reader.extractTemplate(inputSource, LocaleId.EN_US, null);
Expand All @@ -116,6 +118,7 @@ public void invalidSourceContentElementTest() throws FileNotFoundException
@Test(expectedExceptions = RuntimeException.class)
public void invalidTargetContentElementTest() throws FileNotFoundException
{
// expect RuntimeException with tu:transunit1 - target
File fileTarget = new File(TEST_DIR, "/StringResource_de2.xml");
InputSource inputSource = new InputSource(new FileInputStream(fileTarget));
TranslationsResource tr = reader.extractTarget(inputSource);
Expand Down

0 comments on commit 15f6d60

Please sign in to comment.