Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
Fix broken tests of IntellijIntegrationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
blindpirate committed Feb 26, 2017
1 parent 8fbba2a commit 49d4f1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ class IntellijIdeIntegrationTest {
Project project
File resource

IntellijIdeIntegration goglandIntegration
IntellijIdeIntegration intellijIdeIntegration

@Before
void setUp() {
goglandIntegration = new IntellijIdeIntegration(manager, project)
intellijIdeIntegration = new IntellijIdeIntegration(manager, project)
when(project.getRootDir()).thenReturn(resource)
when(manager.getBinaryPath()).thenReturn(new File(resource, 'go/bin/go').toPath())
when(manager.getGoroot()).thenReturn(new File(resource, 'go').toPath())
Expand All @@ -35,8 +35,8 @@ class IntellijIdeIntegrationTest {
}

@Test
void 'gogland xmls should be generated correctly'() {
goglandIntegration.generateXmls()
void 'xmls should be generated correctly'() {
intellijIdeIntegration.generateXmls()

assert new File(resource, '.idea/goLibraries.xml').exists()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class IntellijIdeTaskTest extends TaskTest {
// when
task.generateXmls()
// then
verify(goglandIntegration).generateXmls()
verify(intellijIdeIntegration).generateXmls()
assertTaskDependsOn(task, INSTALL_BUILD_DEPENDENCIES_TASK_NAME)
assertTaskDependsOn(task, INSTALL_TEST_DEPENDENCIES_TASK_NAME)
assertTaskDependsOn(task, RENAME_VENDOR_TASK_NAME)
Expand Down

0 comments on commit 49d4f1e

Please sign in to comment.