Skip to content

Commit

Permalink
Update illTyped tests so they match the new logging pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
TruFire committed Sep 13, 2018
1 parent 4154e8a commit 24dcef7
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/test/scala/com/lucidchart/lifecycle/LifecycleManagedSpec.scala
Expand Up @@ -11,8 +11,8 @@ class LifecycleManagedSpec extends Specification {
"Give a compiler error for a lifecycle annotated value that isn't initialized" in {
illTyped(
"""
@LifecycleManaged(true, loggerTrait = "MockLogging")
class Test extends LifecycleMethods {
@LifecycleManaged(true)
class Test extends LifecycleMethods with MockLogging {
@onStart
val testValue: EmptyLifecycleValue[Boolean] = new EmptyLifecycleValue[Boolean](Lifecycles.OnStart, true) with MockLogging
}
Expand All @@ -23,8 +23,8 @@ class LifecycleManagedSpec extends Specification {
"Give a compiler error for a lifecycle annotated value that isn't initialized but the method it should be initialized in is overridden" in {
illTyped(
"""
@LifecycleManaged(true, loggerTrait = "MockLogging")
class Test extends LifecycleMethods {
@LifecycleManaged(true)
class Test extends LifecycleMethods with MockLogging {
@onStart
val testValue:EmptyLifecycleValue[Boolean] = new EmptyLifecycleValue[Boolean](Lifecycles.OnStart, true) with MockLogging
Expand All @@ -37,8 +37,8 @@ class LifecycleManagedSpec extends Specification {
"Give a compiler error for an uninitialized empty lifecycle even when the lifecycle value is not defined directly" in {
illTyped(
"""
@LifecycleManaged(true, loggerTrait = "MockLogging")
class Test extends LifecycleMethods {
@LifecycleManaged(true)
class Test extends LifecycleMethods with MockLogging {
val x = new EmptyLifecycleValue[Boolean](Lifecycles.OnStart, true) with MockLogging
@onStart
Expand All @@ -53,8 +53,8 @@ class LifecycleManagedSpec extends Specification {
"Give a compiler error for a lifecycle initialization that doesn't specify which lifecycle value should be initialized" in {
illTyped(
"""
@LifecycleManaged(true, loggerTrait = "MockLogging")
class Test extends LifecycleMethods {
@LifecycleManaged(true)
class Test extends LifecycleMethods with MockLogging {
@onStart
val testValue = new EmptyLifecycleValue[Boolean](Lifecycles.OnStart, true) with MockLogging
Expand All @@ -70,8 +70,8 @@ class LifecycleManagedSpec extends Specification {
"Give a compiler error for a lifecycle initialization that specifies a non lifecycle value" in {
illTyped(
"""
@LifecycleManaged(true, loggerTrait = "MockLogging")
class Test extends LifecycleMethods {
@LifecycleManaged(true)
class Test extends LifecycleMethods with MockLogging {
val other = false
@onStart
Expand All @@ -89,8 +89,8 @@ class LifecycleManagedSpec extends Specification {
"Give a compiler error for a lifecycle initialization that specifies a lifecycle value from a different lifecycle" in {
illTyped(
"""
@LifecycleManaged(true, loggerTrait = "MockLogging")
class Test extends LifecycleMethods {
@LifecycleManaged(true)
class Test extends LifecycleMethods with MockLogging {
val other = false
@onStart
Expand All @@ -111,8 +111,8 @@ class LifecycleManagedSpec extends Specification {
"Give a compiler error for a lifecycle initialization that specifies multiple values" in {
illTyped(
"""
@LifecycleManaged(true, loggerTrait = "MockLogging")
class Test extends LifecycleMethods {
@LifecycleManaged(true)
class Test extends LifecycleMethods with MockLogging {
val other = false
@onStart
Expand All @@ -133,8 +133,8 @@ class LifecycleManagedSpec extends Specification {
"Give a compiler error for a lifecycle initialization that is initialized multiple times" in {
illTyped(
"""
@LifecycleManaged(true, loggerTrait = "MockLogging")
class Test extends LifecycleMethods {
@LifecycleManaged(true)
class Test extends LifecycleMethods with MockLogging {
val other = false
@onStart
Expand All @@ -155,8 +155,8 @@ class LifecycleManagedSpec extends Specification {
"Give a compiler error for a lifecycle annotation applied to something other than a val" in {
illTyped(
"""
@LifecycleManaged(true, loggerTrait = "MockLogging")
class Test extends LifecycleMethods {
@LifecycleManaged(true)
class Test extends LifecycleMethods with MockLogging {
val other = false
@onResume
Expand Down

0 comments on commit 24dcef7

Please sign in to comment.