mirror of https://github.com/halo-dev/halo
Resolve test error
parent
8e9f4dff06
commit
78d7f17a1b
|
@ -7,10 +7,7 @@ import org.eclipse.jgit.api.errors.GitAPIException;
|
||||||
import org.eclipse.jgit.errors.RepositoryNotFoundException;
|
import org.eclipse.jgit.errors.RepositoryNotFoundException;
|
||||||
import org.eclipse.jgit.transport.RemoteConfig;
|
import org.eclipse.jgit.transport.RemoteConfig;
|
||||||
import org.eclipse.jgit.transport.URIish;
|
import org.eclipse.jgit.transport.URIish;
|
||||||
import org.junit.AfterClass;
|
import org.junit.*;
|
||||||
import org.junit.BeforeClass;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
|
@ -28,15 +25,15 @@ import java.util.Set;
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class GitTest {
|
public class GitTest {
|
||||||
|
|
||||||
private static Path tempPath;
|
private Path tempPath;
|
||||||
|
|
||||||
@BeforeClass
|
@Before
|
||||||
public static void setUp() throws IOException {
|
public void setUp() throws IOException {
|
||||||
tempPath = Files.createTempDirectory("git-test");
|
tempPath = Files.createTempDirectory("git-test");
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClass
|
@After
|
||||||
public static void destroy() throws IOException {
|
public void destroy() throws IOException {
|
||||||
FileUtils.deleteFolder(tempPath);
|
FileUtils.deleteFolder(tempPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue