You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by jf...@apache.org on 2009/02/11 20:05:52 UTC
svn commit: r743454 - in /webservices/juddi/branches/v3_trunk:
docs/jUDDI-UserGuide.odt
juddi-core/src/test/java/org/apache/juddi/api/impl/API_010_PublisherTest.java
juddi-core/src/test/java/org/apache/juddi/auth/AuthenticatorTest.java
Author: jfaath
Date: Wed Feb 11 19:05:51 2009
New Revision: 743454
URL: http://svn.apache.org/viewvc?rev=743454&view=rev
Log:
JUDDI-187: resolved
Modified:
webservices/juddi/branches/v3_trunk/docs/jUDDI-UserGuide.odt
webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/api/impl/API_010_PublisherTest.java
webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/auth/AuthenticatorTest.java
Modified: webservices/juddi/branches/v3_trunk/docs/jUDDI-UserGuide.odt
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/docs/jUDDI-UserGuide.odt?rev=743454&r1=743453&r2=743454&view=diff
==============================================================================
Binary files - no diff available.
Modified: webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/api/impl/API_010_PublisherTest.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/api/impl/API_010_PublisherTest.java?rev=743454&r1=743453&r2=743454&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/api/impl/API_010_PublisherTest.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/api/impl/API_010_PublisherTest.java Wed Feb 11 19:05:51 2009
@@ -74,7 +74,7 @@
* @return - true if the published did not exist already,
* - false in all other cases.
*/
- protected boolean saveJoePublisher() {
+ public boolean saveJoePublisher() {
if (!isExistPublisher(TckPublisher.JOE_PUBLISHER_ID)) {
savePublisher(TckPublisher.JOE_PUBLISHER_ID, TckPublisher.JOE_PUBLISHER_XML);
return true;
@@ -86,14 +86,14 @@
* Removes Joe Publisher from the database, this will fail if there
* are child objects attached; think Services etc.
*/
- protected void deleteJoePublisher() {
+ public void deleteJoePublisher() {
deletePublisher(TckPublisher.JOE_PUBLISHER_ID);
}
/**
* Persists Sam Syndicator to the database.
* @return publisherId
*/
- protected String saveSamSyndicator() {
+ public String saveSamSyndicator() {
if (!isExistPublisher(TckPublisher.SAM_SYNDICATOR_ID)) {
savePublisher(TckPublisher.SAM_SYNDICATOR_ID, TckPublisher.SAM_SYNDICATOR_XML);
}
@@ -103,7 +103,7 @@
* Removes Sam Syndicator from the database, this will fail if there
* are child objects attached; think Services etc.
*/
- protected void deleteSamSyndicator() {
+ public void deleteSamSyndicator() {
deletePublisher(TckPublisher.SAM_SYNDICATOR_ID);
}
Modified: webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/auth/AuthenticatorTest.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/auth/AuthenticatorTest.java?rev=743454&r1=743453&r2=743454&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/auth/AuthenticatorTest.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/test/java/org/apache/juddi/auth/AuthenticatorTest.java Wed Feb 11 19:05:51 2009
@@ -21,6 +21,7 @@
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
+import org.apache.juddi.api.impl.API_010_PublisherTest;
import org.apache.juddi.cryptor.Cryptor;
import org.apache.juddi.cryptor.CryptorFactory;
import org.apache.juddi.error.AuthenticationException;
@@ -28,7 +29,6 @@
import org.apache.juddi.error.UnknownUserException;
import org.apache.log4j.Logger;
import org.junit.Assert;
-import org.junit.Ignore;
import org.junit.Test;
/**
@@ -41,15 +41,18 @@
* The DefaultAuthenticator is basically a pass-through.
* @throws ConfigurationException
*/
- @Test @Ignore
+ @Test
public void testDefaultAuthenticator()
{
Authenticator auth = new JUDDIAuthenticator();
try {
- auth.authenticate("anou_mana","password");
- auth.authenticate("anou_mana","badpass");
- auth.authenticate("bozo","clown");
- auth.authenticate("sviens","password");
+ API_010_PublisherTest api010 = new API_010_PublisherTest();
+ api010.saveJoePublisher();
+ api010.saveSamSyndicator();
+
+ auth.authenticate("joepublisher","password");
+ auth.authenticate("ssyndicator","badpass");
+
} catch (Exception e) {
logger.error(e.getMessage(),e);
Assert.fail("unexpected");
---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org