[jboss-svn-commits] JBL Code SVN: r13523 - labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/dsl.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sat Jul 14 22:49:43 EDT 2007
Author: michael.neale at jboss.com
Date: 2007-07-14 22:49:42 -0400 (Sat, 14 Jul 2007)
New Revision: 13523
Removed:
labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/dsl/DefaultExpanderResolverTest.java
Log:
removing legacy code
Deleted: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/dsl/DefaultExpanderResolverTest.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/dsl/DefaultExpanderResolverTest.java 2007-07-15 02:43:50 UTC (rev 13522)
+++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/dsl/DefaultExpanderResolverTest.java 2007-07-15 02:49:42 UTC (rev 13523)
@@ -1,81 +0,0 @@
-package org.drools.lang.dsl;
-
-/*
- * Copyright 2005 JBoss Inc
- *
- * 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.
- */
-
-import junit.framework.TestCase;
-
-public class DefaultExpanderResolverTest extends TestCase {
-
- // public void testResolve() throws Exception {
- // final DefaultExpanderResolver res = new DefaultExpanderResolver();
- // final Expander mock1 = new MockExpander();
- // res.addExpander( "mock1.dsl",
- // mock1 );
- // assertEquals( mock1,
- // res.get( "mock1.dsl",
- // null ) );
- // res.addExpander( "mock2.dsl",
- // new MockExpander() );
- // assertNotSame( mock1,
- // res.get( "mock2.dsl",
- // null ) );
- //
- // final MockExpander def = new MockExpander();
- // res.addExpander( "*",
- // def );
- // assertEquals( def,
- // res.get( "nothing.here",
- // null ) );
- //
- // }
- //
- // public void testDefault() throws Exception {
- //
- // final InputStreamReader reader = new InputStreamReader( this.getClass().getResourceAsStream( "test.dsl" ) );
- //
- // final DefaultExpanderResolver res = new DefaultExpanderResolver( reader );
- // final DefaultExpander exp = (DefaultExpander) res.get( "oooh",
- // null );
- // assertNotNull( exp );
- //
- // assertEquals( "Person(name==\"foo\")",
- // exp.expand( "when",
- // "Person has name of foo" ) );
- // assertEquals( "wild();",
- // exp.expand( "then",
- // "Go wild" ) );
- // assertEquals( "something",
- // exp.expand( "when",
- // "nothing" ) );
- // assertEquals( "something",
- // exp.expand( "then",
- // "nothing" ) );
- //
- // }
- //
- public void testFindNone() {
- // final DefaultExpanderResolver exp = new DefaultExpanderResolver();
- // try {
- // exp.get( "nothing.dsl",
- // "" );
- // fail( "should have thrown an exception when it can't find an expander." );
- // } catch ( final IllegalArgumentException e ) {
- // assertNotNull( e.getMessage() );
- // }
- }
-
-}
\ No newline at end of file
More information about the jboss-svn-commits
mailing list