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 44273

Summary: TestUtilTest.testCreateFileFromContent commit validation test is failing
Product: projects Reporter: David Simonek <dsimonek>
Component: Generic InfrastructureAssignee: Jesse Glick <jglick>
Status: CLOSED WORKSFORME    
Severity: blocker Keywords: TEST
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description David Simonek 2004-06-03 12:46:56 UTC
Every time I run commit validation on my machine, 
following test fails:

     junit.framework.AssertionFailedError: touched
and changed timestamp
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at
org.netbeans.api.project.TestUtilTest.testCreateFileFromContent(TestUtilTest.java:63)
	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:324)
	at
junit.framework.TestCase.runTest(TestCase.java:154)
	at
junit.framework.TestCase.runBare(TestCase.java:127)
	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:119)
	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:173)
	at
org.netbeans.xtest.testrunner.JUnitTestRunner.runTests(JUnitTestRunner.java:129)
	at
org.netbeans.xtest.plugin.jvm.JUnitTestRunnerLauncher.main(JUnitTestRunnerLauncher.java:41)
Comment 1 Jesse Glick 2004-06-03 22:34:39 UTC
Doesn't happen to me of course. Does it happen to anyone else? What
JDK and operating system are you using? (You marked this issue "All"
for OS which is probably wrong - assuming XP.)

There is something timing-related in this test method so I will just
exclude it from the commit validation suite since I have no idea how
to reproduce the problem nor what to do with it. It tests that after
writing a file, the timestamp changes.
Comment 2 Jesse Glick 2004-06-04 19:40:41 UTC
committed     Up-To-Date  1.2        
projects/projectapi/test/cfg-unit.xml
Comment 3 Marian Mirilovic 2005-07-12 10:11:42 UTC
closed