|
|
|
|
|
|
|
|
import org.junit.jupiter.api.Assertions; |
|
|
import org.junit.jupiter.api.Assertions; |
|
|
import org.junit.jupiter.api.BeforeEach; |
|
|
import org.junit.jupiter.api.BeforeEach; |
|
|
import org.junit.jupiter.api.Test; |
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
import org.junit.jupiter.api.condition.EnabledOnOs; |
|
|
|
|
|
import org.junit.jupiter.api.condition.OS; |
|
|
import org.junit.jupiter.api.io.TempDir; |
|
|
import org.junit.jupiter.api.io.TempDir; |
|
|
import org.pf4j.test.PluginJar; |
|
|
import org.pf4j.test.PluginJar; |
|
|
import org.pf4j.test.TestExtension; |
|
|
import org.pf4j.test.TestExtension; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
public void releaseBrokenJar() throws IOException { |
|
|
|
|
|
|
|
|
@EnabledOnOs(OS.WINDOWS) |
|
|
|
|
|
public void releaseBrokenJarOnWindows() throws IOException { |
|
|
PluginJar pluginZip = new PluginJar.Builder(pluginsPath.resolve("test.jar"), "test") |
|
|
PluginJar pluginZip = new PluginJar.Builder(pluginsPath.resolve("test.jar"), "test") |
|
|
.pluginVersion("1.2.3") |
|
|
.pluginVersion("1.2.3") |
|
|
.pluginClass("invalidClass") |
|
|
.pluginClass("invalidClass") |