Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Adapt toString #34
Browse files Browse the repository at this point in the history
  • Loading branch information
tdauth authored and rebazer committed May 21, 2019
1 parent 2a84884 commit 13c758e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/de/retest/guistatemachine/api/State.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ trait State {

override def hashCode(): Int = this.getSutStateIdentifier.hashCode()

override def toString: String = s"State[sutStateIdentifier=$getSutStateIdentifier]"
override def toString: String = s"State[sutStateIdentifier=$getSutStateIdentifier,neverExploredActionTypesCounter=$getNeverExploredActionTypesCounter]"

/**
* Adds a new transition to the state which is only allowed by calling the methods of [[GuiStateMachine]].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class StateImplSpec extends AbstractApiSpec {

"be converted into a string" in {
val s0 = StateImpl(sutStateAIdentifier, 2)
s0.toString shouldEqual "State[sutStateIdentifier=SutStateIdentifier[sutState=State[descriptor=[]], hash=0e4fd44f14d365fae3a7f3579b7ef013e1167e0f4ef6de418367b81edc63450d]]"
s0.toString shouldEqual "State[sutStateIdentifier=SutStateIdentifier[sutState=State[descriptor=[]], hash=0e4fd44f14d365fae3a7f3579b7ef013e1167e0f4ef6de418367b81edc63450d],neverExploredActionTypesCounter=2]"
}
}
}

0 comments on commit 13c758e

Please sign in to comment.