Cleanup the emailer invocation scala-emailer
authorJaroslav Tulach <jtulach@netbeans.org>
Thu, 26 Nov 2009 20:30:55 +0100
branchscala-emailer
changeset 155388a3511c433
parent 154 d9d5376d5f23
child 157 1f49195b49e8
Cleanup the emailer invocation
emailer/src/test/scala/cz/xelfi/quoridor/emailer/MainTest.scala
emailer/src/test/scala/cz/xelfi/quoridor/emailer/MySpec.scala
     1.1 --- a/emailer/src/test/scala/cz/xelfi/quoridor/emailer/MainTest.scala	Thu Nov 26 20:20:33 2009 +0100
     1.2 +++ b/emailer/src/test/scala/cz/xelfi/quoridor/emailer/MainTest.scala	Thu Nov 26 20:30:55 2009 +0100
     1.3 @@ -1,19 +1,41 @@
     1.4 +/*
     1.5 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     1.6 + *
     1.7 + * The contents of this file are subject to the terms of either the GNU
     1.8 + * General Public License Version 2 only ("GPL") or the Common
     1.9 + * Development and Distribution License("CDDL") (collectively, the
    1.10 + * "License"). You may not use this file except in compliance with the
    1.11 + * License. You can obtain a copy of the License at
    1.12 + * http://www.netbeans.org/cddl-gplv2.html
    1.13 + * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
    1.14 + * specific language governing permissions and limitations under the
    1.15 + * License.  When distributing the software, include this License Header
    1.16 + * Notice in each file and include the License file at
    1.17 + * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
    1.18 + * particular file as subject to the "Classpath" exception as provided
    1.19 + * by Sun in the GPL Version 2 section of the License file that
    1.20 + * accompanied this code. If applicable, add the following below the
    1.21 + * License Header, with the fields enclosed by brackets [] replaced by
    1.22 + * your own identifying information:
    1.23 + * "Portions Copyrighted [year] [name of copyright owner]"
    1.24 + *
    1.25 + * Contributor(s):
    1.26 + *
    1.27 + * Portions Copyrighted 2009 Jaroslav Tulach
    1.28 + */
    1.29 +
    1.30  package cz.xelfi.quoridor.emailer
    1.31  
    1.32  import org.junit._
    1.33  import Assert._
    1.34  
    1.35  @Test
    1.36 -class AppTest {
    1.37 +class MainTest {
    1.38  
    1.39      @Test
    1.40      def testCheckLazyPlayers() = {
    1.41        Main.main(null)
    1.42      }
    1.43 -
    1.44 -//    @Test
    1.45 -//    def testKO() = assertTrue(false)
    1.46 -
    1.47  }
    1.48  
    1.49  
     2.1 --- a/emailer/src/test/scala/cz/xelfi/quoridor/emailer/MySpec.scala	Thu Nov 26 20:20:33 2009 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,17 +0,0 @@
     2.4 -package org.apidesign.emailer
     2.5 -
     2.6 -import org.specs._
     2.7 -import org.specs.runner.{ConsoleRunner, JUnit4}
     2.8 -
     2.9 -class MySpecTest extends JUnit4(MySpec)
    2.10 -//class MySpecSuite extends ScalaTestSuite(MySpec)
    2.11 -object MySpecRunner extends ConsoleRunner(MySpec)
    2.12 -
    2.13 -object MySpec extends Specification {
    2.14 -  "This wonderful system" should {
    2.15 -    "save the world" in {
    2.16 -      val list = Nil
    2.17 -      list must beEmpty
    2.18 -    }
    2.19 -  }
    2.20 -}