Github user neykov commented on a diff in the pull request:

    https://github.com/apache/incubator-brooklyn/pull/211#discussion_r18698764
  
    --- Diff: 
core/src/test/java/brooklyn/entity/rebind/transformer/impl/XsltTransformerTest.java
 ---
    @@ -25,35 +25,37 @@
     import brooklyn.entity.rebind.transformer.impl.XsltTransformer;
     import brooklyn.entity.rebind.transformer.impl.XsltTransformerTest;
     import brooklyn.util.ResourceUtils;
    +import brooklyn.util.os.Os;
     import brooklyn.util.text.TemplateProcessor;
     
     import com.google.common.collect.ImmutableMap;
     
     public class XsltTransformerTest {
    +    private static final String NL = Os.LINE_SEPARATOR;
     
         @Test
         public void testRenameType() throws Exception {
             String xsltTemplate = 
ResourceUtils.create(XsltTransformerTest.class).getResourceAsString("classpath://brooklyn/entity/rebind/transformer/renameType.xslt");
             String xslt = 
TemplateProcessor.processTemplateContents(xsltTemplate, 
ImmutableMap.of("old_val", "mytype.Before", "new_val", "mytype.After"));
             String input = 
    -                "<entity myattrib=\"myval\">"+"\n"+
    -                "  <type myattrib2=\"myval2\">mytype.Before</type>"+"\n"+
    -                "  <nested>"+"\n"+
    -                "    <type myattrib3=\"myval3\">doesNotMatch</type>"+"\n"+
    -                "    <type 
myattrib4=\"myval4\">partial.mytype.Before</type>"+"\n"+
    -                "    <type myattrib5=\"myval5\">mytype.Before</type>"+"\n"+
    -                "  </nested>"+"\n"+
    -                "  <id>myid</id>"+"\n"+
    +                "<entity myattrib=\"myval\">"+NL+
    --- End diff --
    
    Good point, would've been better to remove the new line. This is already 
merged with https://github.com/apache/incubator-brooklyn/pull/220 though.
    
    I have extracted the remaining test fixes in 
https://github.com/apache/incubator-brooklyn/pull/235 (not related to the 
changes).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to