blob: f77ef7a8ce02454ca3feb4a4c666e3990a1bf03f [file] [log] [blame]
import com.streamxhub.streamx.console.core.entity.Project;
import com.streamxhub.streamx.console.core.enums.GitAuthorizedError;
import org.junit.Before;
import org.junit.Test;
import java.util.List;
public class GitTest {
private Project project = new Project();
@Before
public void before() {
project.setUrl("https://github.com/streamxhub/streamx-quickstart");
}
@Test
public void getBranchs() {
List<String> branches = project.getAllBranches();
branches.forEach(System.out::println);
}
@Test
public void auth() {
GitAuthorizedError error = project.gitCheck();
System.out.println(error);
}
}