portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r683498 - in /portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-registry/src/test/java/org/apache/jetspeed/components/portletpreferences: ./ TestPortletPreferencesProvider.java
Date Thu, 07 Aug 2008 03:56:07 GMT
Author: taylor
Date: Wed Aug  6 20:56:06 2008
New Revision: 683498

URL: http://svn.apache.org/viewvc?rev=683498&view=rev
Log:
 http://issues.apache.org/jira/browse/JS2-869

Added:
    portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-registry/src/test/java/org/apache/jetspeed/components/portletpreferences/
    portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-registry/src/test/java/org/apache/jetspeed/components/portletpreferences/TestPortletPreferencesProvider.java

Added: portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-registry/src/test/java/org/apache/jetspeed/components/portletpreferences/TestPortletPreferencesProvider.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-registry/src/test/java/org/apache/jetspeed/components/portletpreferences/TestPortletPreferencesProvider.java?rev=683498&view=auto
==============================================================================
--- portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-registry/src/test/java/org/apache/jetspeed/components/portletpreferences/TestPortletPreferencesProvider.java
(added)
+++ portals/jetspeed-2/portal/branches/JS2-869/components/jetspeed-registry/src/test/java/org/apache/jetspeed/components/portletpreferences/TestPortletPreferencesProvider.java
Wed Aug  6 20:56:06 2008
@@ -0,0 +1,62 @@
+/*
+ * 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.jetspeed.components.portletpreferences;
+
+import org.apache.jetspeed.Jetspeed;
+import org.apache.jetspeed.components.util.DatasourceEnabledSpringTestCase;
+import org.apache.jetspeed.engine.MockJetspeedEngine;
+
+public class TestPortletPreferencesProvider extends
+		DatasourceEnabledSpringTestCase 
+{
+
+    private static MockJetspeedEngine mockEngine = new MockJetspeedEngine();
+	private PortletPreferencesProvider prefs;
+	
+	@Override
+	protected String[] getConfigurations() {
+	    return new String[]
+           { "transaction.xml", "registry-test.xml", "cache.xml" };
+	}
+
+    protected void setUp() throws Exception
+    {
+        super.setUp();
+        mockEngine.setComponentManager(scm);
+        Jetspeed.setEngine(mockEngine);
+        this.prefs = (PortletPreferencesProvider) scm.getComponent("org.apache.jetspeed.components.portletpreferences.PortletPreferencesProvider");
+        PortletPreferencesProvider temp = (PortletPreferencesProvider) scm.getComponent("portletPreferencesProvider");
+        System.out.println("temp = " + temp);
+        System.out.println("prefs = " + prefs);        
+//        teardownTestData();
+//        setupTestData();
+    }
+
+    protected void tearDown() throws Exception
+    {
+//        teardownTestData();
+        Jetspeed.setEngine(null);
+        super.tearDown();
+    }
+    
+    public void testEntities() throws Exception
+    {
+    	System.out.println("Testing baby");    	
+    }
+
+    
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message