Skip to content
Permalink
Browse files

Fixed Browser Service Unit Tests: Browser was not persisted correctly…

… with the old annotation to mock the used entities
  • Loading branch information...
j0weiss committed Jul 11, 2019
1 parent 5a60aa5 commit 6fe72666b91da1d53b194dc8d445518461920e1b
Showing with 12 additions and 10 deletions.
  1. +12 −10 src/test/groovy/de/iteratec/osm/measurement/environment/BrowserServiceSpec.groovy
@@ -1,17 +1,17 @@
/*
/*
* OpenSpeedMonitor (OSM)
* Copyright 2014 iteratec GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@@ -28,8 +28,10 @@ import spock.lang.Unroll
/**
* Test-suite for {@link BrowserService}.
*/
@Build([Browser, Location, WebPageTestServer])
class BrowserServiceSpec extends Specification implements BuildDataTest, ServiceUnitTest<BrowserService> {
void setupSpec() {
mockDomains(Browser, Location, WebPageTestServer)
}

void "find by name or alias returns correct browsers"(String nameOrAlias, String expectedBrowserName) {
given: "Two browsers with aliases"

0 comments on commit 6fe7266

Please sign in to comment.
You can’t perform that action at this time.