assertFalse(isValidPath("a\u0000b"));
}
+ @SuppressWarnings("unused")
private static boolean isValidPath(String path) {
try {
new DirCacheEntry(path);
}
}
+ @SuppressWarnings("unused")
@Test
public void testCreate_ByStringPath() {
assertEquals("a", new DirCacheEntry("a").getPathString());
}
}
+ @SuppressWarnings("unused")
@Test
public void testCreate_ByStringPathAndStage() {
DirCacheEntry e;
.findGitDir(d).getGitDir());
}
+ @SuppressWarnings("unused")
@Test
public void emptyRepositoryFormatVersion() throws Exception {
Repository r = createWorkRepository();
new FileRepository(r.getDirectory());
}
+ @SuppressWarnings("unused")
@Test
public void invalidRepositoryFormatVersion() throws Exception {
Repository r = createWorkRepository();
}
}
+ @SuppressWarnings("unused")
@Test
public void unknownRepositoryFormatVersion() throws Exception {
Repository r = createWorkRepository();
assertNotSame(db.getConfig(), db2.getConfig());
}
+ @SuppressWarnings("unused")
@Test
public void test008_FailOnWrongVersion() throws IOException {
final File cfg = new File(db.getDirectory(), Constants.CONFIG);
p.toExternalString());
}
+ @SuppressWarnings("unused")
@Test(expected = IllegalArgumentException.class)
public void nullForNameShouldThrowIllegalArgumentException() {
new PersonIdent(null, "author@example.com");
}
+ @SuppressWarnings("unused")
@Test(expected = IllegalArgumentException.class)
public void nullForEmailShouldThrowIllegalArgumentException() {
new PersonIdent("A U Thor", null);
assertEquals(1, flushCnt[0]);
}
+ @SuppressWarnings("unused")
@Test
public void testConstructor_RejectsBadChannel() {
try {
}
}
+ @SuppressWarnings("unused")
@Test
public void testConstructor_RejectsBadBufferSize() {
try {
private static final String GIT_SCHEME = "git://";
+ @SuppressWarnings("unused")
@Test
public void shouldRaiseErrorOnEmptyURI() throws Exception {
try {
}
}
+ @SuppressWarnings("unused")
@Test
public void shouldRaiseErrorOnNullURI() throws Exception {
try {