You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2007/04/17 06:22:53 UTC

svn commit: r529481 - in /incubator/tuscany/sandbox/lresende/das/ldap/src/test/java/org/apache/tuscany/das/ldap: ./ DASFactoryTestCase.java

Author: lresende
Date: Mon Apr 16 21:22:49 2007
New Revision: 529481

URL: http://svn.apache.org/viewvc?view=rev&rev=529481
Log:
DAS Factory testcase

Added:
    incubator/tuscany/sandbox/lresende/das/ldap/src/test/java/org/apache/tuscany/das/ldap/
    incubator/tuscany/sandbox/lresende/das/ldap/src/test/java/org/apache/tuscany/das/ldap/DASFactoryTestCase.java   (with props)

Added: incubator/tuscany/sandbox/lresende/das/ldap/src/test/java/org/apache/tuscany/das/ldap/DASFactoryTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/das/ldap/src/test/java/org/apache/tuscany/das/ldap/DASFactoryTestCase.java?view=auto&rev=529481
==============================================================================
--- incubator/tuscany/sandbox/lresende/das/ldap/src/test/java/org/apache/tuscany/das/ldap/DASFactoryTestCase.java (added)
+++ incubator/tuscany/sandbox/lresende/das/ldap/src/test/java/org/apache/tuscany/das/ldap/DASFactoryTestCase.java Mon Apr 16 21:22:49 2007
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package org.apache.tuscany.das.ldap;
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.das.DASFactory;
+import org.apache.tuscany.das.ldap.impl.LdapDASFactoryImpl;
+
+public class DASFactoryTestCase extends TestCase {
+    @Override
+    protected void setUp() throws Exception {
+        super.setUp();
+    }
+    
+    public void testDiscoverFactoryInstance() {
+        DASFactory factory = DASFactory.getInstance(LdapDASFactoryImpl.NAMESPACE);
+        
+        assertNotNull(factory);
+        assertEquals(factory.getNamespace(), LdapDASFactoryImpl.NAMESPACE);
+    }
+}

Propchange: incubator/tuscany/sandbox/lresende/das/ldap/src/test/java/org/apache/tuscany/das/ldap/DASFactoryTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org