harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nina Rinskaya (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3390) [JDK][EUT] 1 test fails from org.eclipse.jdt.apt.tests suit
Date Thu, 24 May 2007 11:39:17 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498600

Nina Rinskaya commented on HARMONY-3390:

I reproduced the issue on the latest Harmony builds, and I'm now going to write a brief description
on how to run the test separately. But just to not keep you waiting while I'm working on it,
I'd like to put below the part of test source code, that looks to be the root cause of this
failure (or just the similar issue), and it looks that it might be a test bug:
private void testPackageImpl() {

PackageDeclaration pkg = _env.getPackage("org.eclipse.jdt.apt.tests.annotations.mirrortest");
ProcessorTestStatus.assertEquals("Package name", "org.eclipse.jdt.apt.tests.annotations.mirrortest",
// Not sure if this is the best way to test -- can we count on the number of classes 
// remaining the same in java.util?
pkg = _env.getPackage("java");
ProcessorTestStatus.assertEquals("Package name", "java", pkg.getQualifiedName());
ProcessorTestStatus.assertEquals("Number of classes in java", 0, pkg.getClasses().size());
pkg = _env.getPackage("java.util");
ProcessorTestStatus.assertEquals("Package name", "java.util", pkg.getQualifiedName());
Collection<ClassDeclaration> classes = pkg.getClasses();
ProcessorTestStatus.assertEquals("Number of classes in java.util", 79, classes.size());
Collection<EnumDeclaration> enums = pkg.getEnums();
ProcessorTestStatus.assertEquals("Number of enums in java.util", 0, enums.size());
Collection<InterfaceDeclaration> interfaces = pkg.getInterfaces();
ProcessorTestStatus.assertEquals("Number of interfaces in java.util", 15, interfaces.size());

> [JDK][EUT] 1 test fails from org.eclipse.jdt.apt.tests suit
> -----------------------------------------------------------
>                 Key: HARMONY-3390
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3390
>             Project: Harmony
>          Issue Type: Bug
>          Components: JDK
>            Reporter: Aleksey Ignatenko
> 1 test fails from org.eclipse.jdt.apt.tests suit.
> Stack trace:
> classname="org.eclipse.jdt.apt.tests.MirrorTests" name="testMirror"
>       <failure message=" ----------- Expected ------------ NO ERRORS ------------
but was ------------ java.lang.IllegalStateException: Failed during test:  Ex
> pected 79, but saw 74. Reason: Number of classes in java.util --------- Difference is
----------  expected:&lt;NO ERRORS&gt; but  was:&lt;java.lang.IllegalStat
> eException: Failed during test: Expected 79, but saw 74. Reason: Number of classes in
java.util&gt;"  type="junit.framework.ComparisonFailure">junit.framework.
> ComparisonFailure:
> The test is to be checked that it is definitly HY bug, possible that it is Eclipse bug.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message