This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 62680

Summary: XMLUtil test fails on windows
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: -- Other --Assignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: blocker Keywords: TEST
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description Jaroslav Tulach 2005-08-19 15:41:52 UTC
testIndentation: 
 
  
      junit.framework.AssertionFailedError: had reasonable indentation in 
<?xml version="1.0" encoding="UTF-8"?> 
<root> 
    <child/> 
</root> 
 
        at junit.framework.Assert.fail(Assert.java:47) 
        at junit.framework.Assert.assertTrue(Assert.java:20) 
        at org.openide.xml.XMLUtilTest.testIndentation(XMLUtilTest.java:279) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
        at java.lang.reflect.Method.invoke(Method.java:585) 
        at junit.framework.TestCase.runTest(TestCase.java:154) 
        at org.netbeans.junit.NbTestCase.runBare(NbTestCase.java:135) 
        at junit.framework.TestResult$1.protect(TestResult.java:106) 
        at junit.framework.TestResult.runProtected(TestResult.java:124) 
        at junit.framework.TestResult.run(TestResult.java:109) 
        at junit.framework.TestCase.run(TestCase.java:118) 
        at org.netbeans.junit.NbTestCase.run(NbTestCase.java:122) 
        at junit.framework.TestSuite.runTest(TestSuite.java:208) 
        at junit.framework.TestSuite.run(TestSuite.java:203) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:167) 
        at 
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:118) 
        at 
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41)
Comment 1 Jesse Glick 2005-08-19 22:15:11 UTC
Just a line ending thing.

Hope this fixes it, cannot test it myself:

committed     Up-To-Date  1.2        
openide/util/test/unit/src/org/openide/xml/XMLUtilTest.java