# HG changeset patch # User Jaroslav Tulach # Date 1259263855 -3600 # Node ID 388a3511c4331305fb75a6aab1b1491adb51fd3d # Parent d9d5376d5f23949282f8e94e28cf233c1fe84ae8 Cleanup the emailer invocation diff -r d9d5376d5f23 -r 388a3511c433 emailer/src/test/scala/cz/xelfi/quoridor/emailer/MainTest.scala --- a/emailer/src/test/scala/cz/xelfi/quoridor/emailer/MainTest.scala Thu Nov 26 20:20:33 2009 +0100 +++ b/emailer/src/test/scala/cz/xelfi/quoridor/emailer/MainTest.scala Thu Nov 26 20:30:55 2009 +0100 @@ -1,19 +1,41 @@ +/* + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. + * + * The contents of this file are subject to the terms of either the GNU + * General Public License Version 2 only ("GPL") or the Common + * Development and Distribution License("CDDL") (collectively, the + * "License"). You may not use this file except in compliance with the + * License. You can obtain a copy of the License at + * http://www.netbeans.org/cddl-gplv2.html + * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the + * specific language governing permissions and limitations under the + * License. When distributing the software, include this License Header + * Notice in each file and include the License file at + * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this + * particular file as subject to the "Classpath" exception as provided + * by Sun in the GPL Version 2 section of the License file that + * accompanied this code. If applicable, add the following below the + * License Header, with the fields enclosed by brackets [] replaced by + * your own identifying information: + * "Portions Copyrighted [year] [name of copyright owner]" + * + * Contributor(s): + * + * Portions Copyrighted 2009 Jaroslav Tulach + */ + package cz.xelfi.quoridor.emailer import org.junit._ import Assert._ @Test -class AppTest { +class MainTest { @Test def testCheckLazyPlayers() = { Main.main(null) } - -// @Test -// def testKO() = assertTrue(false) - } diff -r d9d5376d5f23 -r 388a3511c433 emailer/src/test/scala/cz/xelfi/quoridor/emailer/MySpec.scala --- a/emailer/src/test/scala/cz/xelfi/quoridor/emailer/MySpec.scala Thu Nov 26 20:20:33 2009 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -package org.apidesign.emailer - -import org.specs._ -import org.specs.runner.{ConsoleRunner, JUnit4} - -class MySpecTest extends JUnit4(MySpec) -//class MySpecSuite extends ScalaTestSuite(MySpec) -object MySpecRunner extends ConsoleRunner(MySpec) - -object MySpec extends Specification { - "This wonderful system" should { - "save the world" in { - val list = Nil - list must beEmpty - } - } -}