harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-5144) [classlib][ldap] Add scenario test infrastructure for ldap service provider
Date Fri, 23 Nov 2007 12:17:43 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Stepan Mishura resolved HARMONY-5144.
-------------------------------------

    Resolution: Fixed

Spark, I applied the patch that adds junit.jar to the BTI at r597645.

But if I apply your patch to classlibrary then its build fails with:
compile-support:
 [hy.javac] Compiling 1 source file to C:\Apache\Harmony\ClassLib\build\test_support
 [hy.javac] ----------
 [hy.javac] 1. ERROR in C:\Apache\Harmony\ClassLib\support\src\test\java\tests\support\Support_LdapTest.java
 [hy.javac]  (at line 30)
 [hy.javac]     import org.apache.ldap.server.configuration.MutableServerStartupConfiguration;
 [hy.javac]            ^^^^^^^^^^^^^^^
<SNIP>

So I added the support class to BTI at r597650 to make the scenario compile and run.
See <bti_root>/tests/ldap_scenario/src/tests

IMHO it should be there to avoid tight coupling scenario with classlib. If you disagree please
feel free to raise discussion on dev-list

Also I noticed that the scenario failed but I got notification that it passed. Please file
a separate JIRA to fix it.

Subject was: [build-test alert] PASSED Linux x86: ldap_scenario

And the log was:
BUILD COMPLETE:	build.1

Date of build:	2007-11-23 17:16:45 +0600
Time to build:	15 seconds

***********************************************************
Errors/Warnings:	(4)
            
Test org.apache.harmony.jndi.provider.ldap.scenario.SchemaApacheDSTest FAILED
dir attribute ignored if running in the same VM
dir attribute ignored if running in the same VM

***********************************************************
Unit Tests: (2)
        
error: test_schema_search_String org.apache.harmony.jndi.provider.ldap.scenario.SchemaApacheDSTest
failure: warning tests.support.Support_LdapTest
Unit Test Error Details:	(2)
                
Test: test_schema_search_StringClass: org.apache.harmony.jndi.provider.ldap.scenario.SchemaApacheDSTestorg.apache.harmony.jndi.provider.ldap.NotYetImplementedException
	at org.apache.harmony.jndi.provider.ldap.LdapContextImpl.close(LdapContextImpl.java:784)
	at javax.naming.InitialContext.close(InitialContext.java:490)
	at org.apache.harmony.jndi.provider.ldap.scenario.SchemaApacheDSTest.tearDown(Unknown Source)
	at net.sf.antcontrib.logic.TryCatchTask.execute(TryCatchTask.java:207)
Test: warningClass: tests.support.Support_LdapTestjunit.framework.AssertionFailedError: No
tests found in tests.support.Support_LdapTest
	at net.sf.antcontrib.logic.TryCatchTask.execute(TryCatchTask.java:207)


Thanks,
Stepan.


> [classlib][ldap] Add scenario test infrastructure for ldap service provider
> ---------------------------------------------------------------------------
>
>                 Key: HARMONY-5144
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5144
>             Project: Harmony
>          Issue Type: New Feature
>          Components: build - test - ci
>            Reporter: spark shen
>            Assignee: Stepan Mishura
>         Attachments: adaptor.xml, ldap_adaptor.diff, parameters.xml, Support_LdapTest.diff
>
>
> Add the required scenario infrastructure. Scenario test is a necessity for guarantee
the quality of service provider implementation.

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


Mime
View raw message