This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 200423 - JUnit test TestSMLModelUnits.testRuleInvalidBinding failure
Summary: JUnit test TestSMLModelUnits.testRuleInvalidBinding failure
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: amehrega CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 216190 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-17 15:43 EDT by David Whiteman CLA
Modified: 2012-01-03 13:54 EST (History)
0 users

See Also:


Attachments
test results for failed test (2.15 KB, application/octet-stream)
2007-08-17 15:45 EDT, David Whiteman CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Whiteman CLA 2007-08-17 15:43:25 EDT
After fixing bug 200419, there is one remaining JUnit failure.  I suspect there is another case where we are using the backslash, or some other resource access issue that does not work correctly when deploying the validation plug-in as a jar.  The failing test is attached to this defect.  Since it occurs in TestSMLModelUnits and not when validating an SML-IF file, it is probably related to the code that assembles SML model units into an SML-IF file.

Here is the stack trace:

junit.framework.AssertionFailedError: The actual file has less content than expected
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at junit.framework.Assert.assertNotNull(Assert.java:217)
	at org.eclipse.cosmos.rm.validation.internal.common.TestUtilities.compareFiles(TestUtilities.java:178)
	at org.eclipse.cosmos.rm.validation.internal.common.TestUtilities.compareFiles(TestUtilities.java:201)
	at org.eclipse.cosmos.rm.validation.internal.core.TestSMLModelUnits.validateSMLUnits(TestSMLModelUnits.java:96)
	at org.eclipse.cosmos.rm.validation.internal.core.TestSMLModelUnits.testRuleInvalidBinding(TestSMLModelUnits.java:130)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at junit.framework.TestCase.runTest(TestCase.java:164)
	at junit.framework.TestCase.runBare(TestCase.java:130)
	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:120)
	at org.eclipse.hyades.test.common.junit.HyadesTestCase.run(HyadesTestCase.java:172)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at org.eclipse.hyades.test.common.junit.HyadesTestSuite.runTest(HyadesTestSuite.java:457)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at org.eclipse.hyades.test.common.junit.HyadesTestSuite.doRun(HyadesTestSuite.java:425)
	at org.eclipse.hyades.test.common.junit.HyadesTestSuite.run(HyadesTestSuite.java:338)
	at org.eclipse.hyades.test.common.junit.HyadesTestRunner.run(HyadesTestRunner.java:504)
	at org.eclipse.hyades.test.java.runner.HyadesJUnitRunner.main(HyadesJUnitRunner.java:207)
Comment 1 David Whiteman CLA 2007-08-17 15:45:10 EDT
Created attachment 76329 [details]
test results for failed test
Comment 2 David Whiteman CLA 2007-08-17 15:48:04 EDT
Just to be clear, the conditions for failure are just as in bug 200419, in that this test passes in a development environment, but fails when the validation plug-in is packaged as a jar.
Comment 3 Valentina Popescu CLA 2007-11-29 13:52:22 EST
moving target to i8
Comment 4 Valentina Popescu CLA 2008-03-03 12:41:09 EST
Ruth,
I am moving this to you so that you can reassign as you find appropriate
Comment 5 David Whiteman CLA 2008-04-22 13:14:39 EDT
Still failing in i10 candidate build.  It passes when running as a standalone JUnit test, but not as a TPTP test.
Comment 6 David Whiteman CLA 2008-04-22 13:17:58 EDT
*** Bug 216190 has been marked as a duplicate of this bug. ***
Comment 7 David Whiteman CLA 2008-06-10 16:13:18 EDT
Thanks for taking this one, Ali.
Comment 8 amehrega CLA 2008-06-16 17:34:17 EDT
Even though I'm targeting this to i12, I'll handle it during the i11 test phase
Comment 9 amehrega CLA 2008-08-28 19:38:55 EDT
There were a number of failures under TestSMLModelUnits which I fixed.  The test pass now successfully runs in development environment.  This should be sufficient for the purpose of the interop.

I'm marking this defect fixed.
Comment 10 David Whiteman CLA 2008-11-05 14:59:32 EST
closing to cleanup bugzilla