file://
protocol
Even if you want to run a Jenkins server locally for testing purposes to correctly configure a job Jenkins still needs to fetch the source from a repository. With Git this can be easily done without configuring a Git server. Just specify the path to a local Git repo with
Ref : link
- Create a fresh bare repository on the server:
git init --bare newrepo.git
- Add it as a remote in your local repo:
git remote add newrepo git://user@server.com/newrepo.git
git push newrepo master
to push a particular branch, orgit push --all newrepo
to push all branches
or
git clone --bare /path/to/repo newrepo.git
Junit 4.11 comes with
@FixMethodOrder
annotation. Instead of using custom solutions just upgrade your junit version and annotate test class with FixMethodOrder(MethodSorters.NAME_ASCENDING)
. Check the release notes for the details.
Here is a sample:
import org.junit.runners.MethodSorters;
import org.junit.FixMethodOrder;
import org.junit.Test;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class SampleTest {
@Test
public void firstTest() {
System.out.println("first");
}
@Test
public void secondTest() {
System.out.println("second");
}
}
สมัครสมาชิก:
บทความ (Atom)