Skip to content

Commit

Permalink
Move fixtures from :ide into a separate package
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed May 26, 2016
1 parent 87ff9e3 commit 46be082
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package org.gradle.play.plugins.ide
import org.gradle.play.integtest.fixtures.PlayApp
import org.gradle.play.integtest.fixtures.app.BasicPlayApp

import static org.gradle.plugins.ide.idea.IdeaFixtures.parseIml
import static org.gradle.plugins.ide.fixtures.IdeaFixtures.parseIml

class PlayIdeaPluginBasicIntegrationTest extends PlayIdeaPluginIntegrationTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

package org.gradle.play.plugins.ide

import org.gradle.plugins.ide.idea.IdeaModuleFixture
import org.gradle.plugins.ide.fixtures.IdeaModuleFixture

import static org.gradle.plugins.ide.idea.IdeaFixtures.parseIml
import static org.gradle.plugins.ide.idea.IdeaFixtures.parseIpr
import static org.gradle.plugins.ide.fixtures.IdeaFixtures.parseIml
import static org.gradle.plugins.ide.fixtures.IdeaFixtures.parseIpr

abstract class PlayIdeaPluginIntegrationTest extends PlayIdePluginIntegrationTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package org.gradle.plugins.ide

import org.gradle.integtests.fixtures.AbstractIntegrationSpec
import org.gradle.plugins.ide.idea.IdeaFixtures
import org.gradle.plugins.ide.idea.IdeaModuleFixture
import org.gradle.plugins.ide.fixtures.IdeaFixtures
import org.gradle.plugins.ide.fixtures.IdeaModuleFixture

abstract class AbstractIdeIntegrationSpec extends AbstractIntegrationSpec {
protected IdeaModuleFixture parseIml(String moduleFile) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package org.gradle.plugins.ide

import org.gradle.integtests.fixtures.AbstractIntegrationTest
import org.gradle.integtests.fixtures.executer.ExecutionResult
import org.gradle.plugins.ide.idea.IdeaFixtures
import org.gradle.plugins.ide.idea.IdeaModuleFixture
import org.gradle.plugins.ide.fixtures.IdeaFixtures
import org.gradle.plugins.ide.fixtures.IdeaModuleFixture
import org.gradle.test.fixtures.file.TestFile

abstract class AbstractIdeIntegrationTest extends AbstractIntegrationTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package org.gradle.plugins.ide.idea
import org.gradle.api.JavaVersion
import org.gradle.integtests.fixtures.TestResources
import org.gradle.plugins.ide.AbstractIdeIntegrationSpec
import org.gradle.plugins.ide.fixtures.IdeaFixtures
import org.junit.Rule

class IdeaJavaLanguageSettingsIntegrationTest extends AbstractIdeIntegrationSpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package org.gradle.plugins.ide.idea
import org.gradle.plugins.ide.AbstractSourcesAndJavadocJarsIntegrationTest
import org.gradle.plugins.ide.fixtures.IdeaModuleFixture
import org.gradle.test.fixtures.server.http.HttpArtifact

class IdeaSourcesAndJavadocJarsIntegrationTest extends AbstractSourcesAndJavadocJarsIntegrationTest {
Expand Down Expand Up @@ -48,4 +49,4 @@ class IdeaSourcesAndJavadocJarsIntegrationTest extends AbstractSourcesAndJavadoc
void expectBehaviorAfterBrokenIvyArtifact(HttpArtifact httpArtifact) {
httpArtifact.expectGet()
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.gradle.plugins.ide.idea
package org.gradle.plugins.ide.fixtures

class IdeaFixtures {
static parseFile(File file) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014 the original author or authors.
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.gradle.plugins.ide.idea
package org.gradle.plugins.ide.fixtures

import groovy.transform.ToString
import groovy.util.slurpersupport.GPathResult
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package org.gradle.plugins.ide.idea
package org.gradle.plugins.ide.fixtures

import groovy.util.slurpersupport.GPathResult

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package org.gradle.integtests.composite

import org.gradle.plugins.ide.idea.IdeaFixtures
import org.gradle.plugins.ide.fixtures.IdeaFixtures
import org.gradle.test.fixtures.file.TestFile
import org.gradle.test.fixtures.maven.MavenFileRepository
import spock.lang.Ignore
Expand Down

0 comments on commit 46be082

Please sign in to comment.