Skip to content

Commit

Permalink
Remove JUnit dependency and references.
Browse files Browse the repository at this point in the history
  • Loading branch information
dickwall committed Jul 10, 2015
1 parent c9ff33d commit a11edcf
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 79 deletions.
43 changes: 6 additions & 37 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,24 @@ name := "subcut"

organization := "com.escalatesoft.subcut"

version := "2.1"
version := "2.1.1-SNAPSHOT"

crossScalaVersions := Seq("2.11.0", "2.10.4")
crossScalaVersions := Seq("2.11.7", "2.10.5")

scalaVersion := "2.11.0"
scalaVersion := "2.11.7"

scalacOptions += "-deprecation"

libraryDependencies += "junit" % "junit" % "4.5" % "test"

libraryDependencies += "org.scalatest" %% "scalatest" % "2.1.4" % "test"
libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.4" % "test"

libraryDependencies <<= (scalaVersion, libraryDependencies) { (ver, deps) =>
deps :+ "org.scala-lang" % "scala-compiler" % ver
}

publishMavenStyle := true

publishTo <<= version { (v: String) =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := false

publishArtifact in Test := false

credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")

pomIncludeRepository := { _ => false }

pomExtra := (
<url>http://github.com/dickwall/subcut</url>
<licenses>
<license>
<name>Apache 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:dickwall/subcut.git</url>
<connection>scm:git:git@github.com:dickwall/subcut.git</connection>
</scm>
<developers>
<developer>
<id>dickwall</id>
<name>Dick Wall</name>
<url>http://about.me/dickwall</url>
</developer>
</developers>)
licenses += ("Apache-2.0", url("http://www.apache.org/license/LICENSE-2.0.html"))
8 changes: 3 additions & 5 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/"
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.0")

addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.2")
resolvers += "jgit-repo" at "http://download.eclipse.org/jgit/maven"

resolvers += Classpaths.typesafeResolver

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.4.0")
addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0")
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package com.escalatesoft.subcut.inject

import org.scalatest.Matchers
import org.scalatest.{SeveredStackTraces, FunSuite}
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import java.beans.BeanInfo

/**
Expand All @@ -13,7 +11,6 @@ import java.beans.BeanInfo
* Time: 6:38 AM
*/

@RunWith(classOf[JUnitRunner])
class ConstructorInjectionTest extends FunSuite with Matchers with SeveredStackTraces {
test("Use defined binding, supply no constructor parameter") {
implicit val bindings = AnimalModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package com.escalatesoft.subcut.inject

import org.scalatest.Matchers
import org.scalatest.{FunSuite, SeveredStackTraces}
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner

/*
* Created by IntelliJ IDEA.
Expand All @@ -12,7 +10,6 @@ import org.scalatest.junit.JUnitRunner
* Time: 2:50 PM
*/

@RunWith(classOf[JUnitRunner])
class FrozenModuleTest extends FunSuite with Matchers with SeveredStackTraces {
test("No binding in the module") {
intercept[BindingException] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package com.escalatesoft.subcut.inject

import org.scalatest.Matchers
import org.scalatest.{SeveredStackTraces, FunSuite}
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import NewBindingModule._

/**
Expand All @@ -13,7 +11,6 @@ import NewBindingModule._
* Time: 6:28 PM
*/

@RunWith(classOf[JUnitRunner])
class ImplicitBindingTest extends FunSuite with Matchers with SeveredStackTraces {
test("Implicit binding 1") {
implicit val bm = newBindingModule { implicit module =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package com.escalatesoft.subcut.inject

import org.scalatest.Matchers
import org.scalatest.{FunSuite, SeveredStackTraces}
import org.scalatest.junit.JUnitRunner
import org.junit.runner.RunWith

/**
* Created by IntelliJ IDEA.
Expand All @@ -12,7 +10,6 @@ import org.junit.runner.RunWith
* Time: 10:32 AM
*/

@RunWith(classOf[JUnitRunner])
class InjectConfigValuesTest extends FunSuite with Matchers with SeveredStackTraces {
test("inject some default configuration values using all bound") {
implicit val bindings = ConfigValueModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ package com.escalatesoft.subcut.inject

import org.scalatest.Matchers
import org.scalatest.{FunSuite, SeveredStackTraces}
import org.scalatest.junit.JUnitRunner
import org.junit.runner.RunWith

@RunWith(classOf[JUnitRunner])
class InstanceProviderTest extends FunSuite with Matchers {

test("NewInstanceProvider should provide a new instance each time instance property is accessed") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package com.escalatesoft.subcut.inject

import org.scalatest.FunSuite
import org.scalatest.Matchers
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner

/**
* Created with IntelliJ IDEA.
Expand All @@ -13,7 +11,6 @@ import org.scalatest.junit.JUnitRunner
* To change this template use File | Settings | File Templates.
*/

@RunWith(classOf[JUnitRunner])
class MergedModulesLateBindingTest extends FunSuite with Matchers {

test ("provider manufacturing configuration") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package com.escalatesoft.subcut.inject

import org.scalatest.Matchers
import org.scalatest.{FunSuite, SeveredStackTraces}
import org.scalatest.junit.JUnitRunner
import org.junit.runner.RunWith
import io.Source

/**
Expand All @@ -13,7 +11,6 @@ import io.Source
* Time: 4:46 PM
*/

@RunWith(classOf[JUnitRunner])
class ModuleCompositionAndMergingTest extends FunSuite with Matchers with SeveredStackTraces {

test("Modules should be composable the :: operator") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package com.escalatesoft.subcut.inject
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatest.Matchers
import org.scalatest.FunSuite

@RunWith(classOf[JUnitRunner])
class PlainScalaInjectInBindingTest extends FunSuite with Matchers {

test("inject method is used as service locator for plain Scala constructor style dependency injection during binding") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package com.escalatesoft.subcut.inject

import org.scalatest.Matchers
import org.scalatest.{FunSuite, SeveredStackTraces}
import org.scalatest.junit.JUnitRunner
import org.junit.runner.RunWith

/*
* Created by IntelliJ IDEA.
Expand All @@ -22,7 +20,6 @@ class SomeTestClass extends Injectable with PushBindingsTestInjections {
}


@RunWith(classOf[JUnitRunner])
class PushBindingsTest extends FunSuite with Matchers with SeveredStackTraces {

test("Just using the standard bindings") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
package com.escalatesoft.subcut.inject

import org.scalatest.{SeveredStackTraces, FunSuite}
import org.scalatest.Matchers

/*
* Created by IntelliJ IDEA.
* User: Dick Wall
* Date: 2/17/11
* Time: 11:41 AM
*/

import org.scalatest.{SeveredStackTraces, FunSuite}
import org.scalatest.Matchers
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner

@RunWith(classOf[JUnitRunner])
class InjectionTest extends FunSuite with Matchers with SeveredStackTraces {

test("Create an object with injected resources") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ package com.escalatesoft.subcut.inject

import org.scalatest.{SeveredStackTraces, FunSuite}
import org.scalatest.Matchers
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import scala.language.reflectiveCalls

@RunWith(classOf[JUnitRunner])
class TypeErasureTest extends FunSuite with Matchers with SeveredStackTraces {
test("Can inject types regardless of erasure in binding keys") {
val actual = new Injectable {
Expand Down

0 comments on commit a11edcf

Please sign in to comment.