Author: jboynes
Date: Thu Jul 20 14:52:59 2006
New Revision: 424079

URL: http://svn.apache.org/viewvc?rev=424079&view=rev
Log:
add a testcase to check that assertions are enabled

Added:
    
incubator/tuscany/java/sca/spi/src/test/java/org/apache/tuscany/spi/AssertionTestCase.java
   (with props)

Added: 
incubator/tuscany/java/sca/spi/src/test/java/org/apache/tuscany/spi/AssertionTestCase.java
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/spi/src/test/java/org/apache/tuscany/spi/AssertionTestCase.java?rev=424079&view=auto
==============================================================================
--- 
incubator/tuscany/java/sca/spi/src/test/java/org/apache/tuscany/spi/AssertionTestCase.java
 (added)
+++ 
incubator/tuscany/java/sca/spi/src/test/java/org/apache/tuscany/spi/AssertionTestCase.java
 Thu Jul 20 14:52:59 2006
@@ -0,0 +1,36 @@
+/*
+ *
+ * Copyright 2006 The Apache Software Foundation or its licensors as applicable
+ *
+ *  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.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.spi;
+
+import junit.framework.TestCase;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class AssertionTestCase extends TestCase {
+    /**
+     * test case that confirms that JRE assertions are enabled
+     */
+    public void testAssertionsAreEnabled() {
+        try {
+            assert false;
+            fail("assertions are not enabled");
+        } catch (AssertionError e) {
+            // ok
+        }
+    }
+}

Propchange: 
incubator/tuscany/java/sca/spi/src/test/java/org/apache/tuscany/spi/AssertionTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/tuscany/java/sca/spi/src/test/java/org/apache/tuscany/spi/AssertionTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to