-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTreeTest.java
More file actions
35 lines (26 loc) · 969 Bytes
/
TreeTest.java
File metadata and controls
35 lines (26 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import java.beans.Transient;
import java.io.File;
import java.io.IOException;
public class TreeTest {
private static final String TEST_FILE = null;
// good unit test, makes sure that my constructor works properly
// generate a tree file
// @Test
@DisplayName("Testing the tree constructor to make a tree file")
public void testTreeConstructor() throws IOException {
Tree tree = new Tree(); // should create a Tree file
File treeFile = new File("Tree");
// assertTrue(treeFile.exists());
}
// @Test
@DisplayName("Testing if I can write to the tree")
public void testWriteToTree() {
// Tree tree = new Tree();
File treeFile = new File("Tree");
// assertTrue(treeFile.exists());
File testFile = new File(TEST_FILE);
Object fileContents;
// String fileSha = Blob.sha1(fileContents);
// tree.add("blob: " + fileSha + " : " + TEST_FILE);
}
}