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

Commit

Permalink
Minor code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tdauth committed Nov 5, 2018
1 parent 77aab45 commit 08014c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
package de.retest.guistatemachine.api

import java.util.Collections
import java.util.{Arrays, Collections}

import de.retest.ui.Path
import de.retest.ui.descriptors._
import de.retest.ui.image.Screenshot
import org.scalamock.scalatest.MockFactory
import org.scalatest.{Matchers, WordSpec}
import java.util.Arrays


abstract class AbstractApiSpec extends WordSpec with Matchers with MockFactory {

/**
* Creates a new identifying attributes collection which should only match other identifying attributes with the same ID.
* @param id The ID is used as value for different attributes.
* @return The identifying attributes.
*/
def getIdentifyingAttributes(id: String): IdentifyingAttributes =
new IdentifyingAttributes(Arrays.asList(new StringAttribute("a", id), new StringAttribute("b", id), new StringAttribute("c", id)))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ class DescriptorsSpec extends AbstractApiSpec {
}

"equal" in {
descriptorsA.equals(descriptorsA) shouldEqual true
descriptorsB.equals(descriptorsB) shouldEqual true
descriptorsA shouldEqual descriptorsA
descriptorsB shouldEqual descriptorsB
}
}
}

0 comments on commit 08014c6

Please sign in to comment.