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

Commit

Permalink
Fix IntelliJ IDEA warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tdauth committed Mar 21, 2019
1 parent 7bd8c45 commit 83380af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import org.scalatest.{Matchers, WordSpec}

abstract trait AbstractApiSpec extends WordSpec with Matchers {

def createSutState(rootElements: RootElement*) = new SutState(Arrays.asList(rootElements: _*))
def createSutState(rootElements: RootElement*) : SutState = new SutState(Arrays.asList(rootElements: _*))

/**
* Creates a new identifying attributes collection which should only match other identifying attributes with the same ID.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package de.retest.guistatemachine.api.impl.serialization

import java.io.File
import java.util.Arrays

import de.retest.guistatemachine.api.impl.GuiStateMachineImpl
import de.retest.guistatemachine.api.{AbstractApiSpec, GuiStateMachineSerializer}
import de.retest.recheck.ui.descriptors.SutState
import de.retest.surili.commons.actions.NavigateToAction
import org.scalatest.BeforeAndAfterEach

Expand All @@ -24,8 +22,8 @@ class GuiStateMachineGMLSerializerSpec extends AbstractApiSpec with BeforeAndAft
val action0 = new NavigateToAction("http://google.com")
val action1 = new NavigateToAction("http://wikipedia.org")

val initialSutState = new SutState(Arrays.asList(rootElementA, rootElementB, rootElementC))
val finalSutState = new SutState(Arrays.asList(rootElementC))
val initialSutState = createSutState(rootElementA, rootElementB, rootElementC)
val finalSutState = createSutState(rootElementC)

// Create the whole state machine:
val initialState = guiStateMachine.getState(initialSutState)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package de.retest.guistatemachine.api.impl.serialization

import java.io.File
import java.util.Arrays

import de.retest.guistatemachine.api.impl.GuiStateMachineImpl
import de.retest.guistatemachine.api.{AbstractApiSpec, GuiStateMachineSerializer}
import de.retest.recheck.ui.descriptors.SutState
import de.retest.surili.commons.actions.NavigateToAction
import org.scalatest.BeforeAndAfterEach

Expand All @@ -29,8 +27,8 @@ class GuiStateMachineJavaObjectStreamSerializerSpec extends AbstractApiSpec with
val action0 = new NavigateToAction("http://google.com")
val action1 = new NavigateToAction("http://wikipedia.org")

val initialSutState = new SutState(Arrays.asList(rootElementA, rootElementB, rootElementC))
val finalSutState = new SutState(Arrays.asList(rootElementC))
val initialSutState = createSutState(rootElementA, rootElementB, rootElementC)
val finalSutState = createSutState(rootElementC)

// Create the whole state machine:
guiStateMachine.executeAction(initialSutState, action0, finalSutState)
Expand Down

0 comments on commit 83380af

Please sign in to comment.