This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Eclipse 3.6 classic: i can't create Junit tests for scala

1 reply
Michael Gross
Joined: 2010-08-15,
User offline. Last seen 42 years 45 weeks ago.
Although i did as http://www.scala-lang.org/node/363 describes, any JUnit test created in a scala project has the suffix ".java" and works with java code only. I.e:

import org.junit._ //didn't work, marked as error
import org.junit.* //works
It is a clean installation made by downloading and unpacking eclipse-SDK-3.6-linux-gtk.tar.gz, 
installing plug-ins for scala (http://download.scala-ide.org/nightly-update-helios-2.8.0.final today at 18:00 / 19:00 hour) and Subclipse.


milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: Eclipse 3.6 classic: i can't create Junit tests for scala

On Sun, Aug 15, 2010 at 6:23 PM, Michael Gross wrote:
>
> Although i did as http://www.scala-lang.org/node/363 describes, any JUnit test created in a scala project has the suffix ".java" and works with java code only. I.e:

That page is out of date ... it should be redirecting to
http://scala-ide.assembla.com/wiki/show/scala-ide/Using_Unit_Testing_Fra...,
but it must have been overlooked.

> import org.junit._ //didn't work, marked as error
> import org.junit.* //works
>
> It is a clean installation made by downloading and unpacking eclipse-SDK-3.6-linux-gtk.tar.gz,
> installing plug-ins for scala
> (http://download.scala-ide.org/nightly-update-helios-2.8.0.final today at 18:00 / 19:00 hour) and Subclipse.

The best place for questions like this is the Scala IDE users list,

http://groups.google.com/group/scala-ide-user

Cheers,

Miles

--
Miles Sabin
tel: +44 7813 944 528
gtalk: miles@milessabin.com
skype: milessabin
http://www.chuusai.com/
http://twitter.com/milessabin

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland