[Yanel-commits] rev 22690 - in
public/yanel/trunk/src/test/junit/org/wyona/yanel/core: . map
josias at wyona.com
josias at wyona.com
Thu Feb 15 20:07:48 CET 2007
Author: josias
Date: 2007-02-15 20:07:47 +0100 (Thu, 15 Feb 2007)
New Revision: 22690
Added:
public/yanel/trunk/src/test/junit/org/wyona/yanel/core/map/
public/yanel/trunk/src/test/junit/org/wyona/yanel/core/map/RealmConfigurationTest.java
Log:
added testcase for the copy-realm functionality
Added: public/yanel/trunk/src/test/junit/org/wyona/yanel/core/map/RealmConfigurationTest.java
===================================================================
--- public/yanel/trunk/src/test/junit/org/wyona/yanel/core/map/RealmConfigurationTest.java 2007-02-15 19:07:11 UTC (rev 22689)
+++ public/yanel/trunk/src/test/junit/org/wyona/yanel/core/map/RealmConfigurationTest.java 2007-02-15 19:07:47 UTC (rev 22690)
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2006 Wyona
+ *
+ * Licensed 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.wyona.org/licenses/APACHE-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.wyona.yanel.core.map;
+
+import org.wyona.yanel.junit.AbstractYanelTest;
+
+/**
+ * Simple test for the realm configuration
+ */
+public class RealmConfigurationTest extends AbstractYanelTest {
+
+ protected RealmConfiguration realmConfig;
+
+ public void setUp() throws Exception {
+ super.setUp();
+ this.testName = "Test for the RealmConfiguration";
+ this.realmConfig = yanel.getRealmConfiguration();
+ }
+
+ /**
+ * Tests
+ */
+ public void testCopyRealm() throws Exception {
+ this.realmConfig.copyRealm("from-scratch-realm-template", "test-copy-realm", "Test Realm (created by a Testcase)", "/test/test-copy-realm/");
+ assertNotNull(this.realmConfig.getRealm("test-copy-realm"));
+ }
+
+}
Property changes on: public/yanel/trunk/src/test/junit/org/wyona/yanel/core/map/RealmConfigurationTest.java
___________________________________________________________________
Name: svn:eol-style
+ native
More information about the Yanel-commits
mailing list