Skip to content

Commit 00caf24

Browse files
committed
test: Fix legacy tests
1 parent b0548f5 commit 00caf24

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/test/groovy/ru/endlesscode/bukkitgradle/BukkitTest.groovy

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ class BukkitTest extends PluginTestBase {
2222
void testDefaultMetaMustInheritMeta() throws Exception {
2323
project.with {
2424
PluginMeta meta = bukkit.meta
25-
assert name == meta.name
26-
assert description == meta.description
27-
assert version == meta.version
28-
assert ext.url == meta.url
29-
assert "com.example.plugin.TestProject" == meta.main
30-
assert meta.authors == null
25+
assert name == meta.name.get()
26+
assert description == meta.description.get()
27+
assert version == meta.version.get()
28+
assert ext.url == meta.url.get()
29+
assert "com.example.plugin.TestProject" == meta.main.get()
30+
assert [] == meta.authors.get()
3131
}
3232
}
3333

@@ -36,11 +36,11 @@ class BukkitTest extends PluginTestBase {
3636
this.initBukkitMeta()
3737

3838
PluginMeta meta = this.project.bukkit.meta
39-
assert "TestPlugin" == meta.name
40-
assert "Test plugin description" == meta.description
41-
assert "0.1" == meta.version
42-
assert "com.example.plugin.Plugin" == meta.main
43-
assert "http://www.example.com/" == meta.url
44-
assert "[OsipXD, Contributors]" == meta.authors
39+
assert "TestPlugin" == meta.name.get()
40+
assert "Test plugin description" == meta.description.get()
41+
assert "0.1" == meta.version.get()
42+
assert "com.example.plugin.Plugin" == meta.main.get()
43+
assert "http://www.example.com/" == meta.url.get()
44+
assert ['OsipXD', 'Contributors'] == meta.authors.get()
4545
}
4646
}

0 commit comments

Comments
 (0)