|
@@ -0,0 +1,63 @@
|
|
1
|
+package com.zipcoin.model;
|
|
2
|
+
|
|
3
|
+import com.zipcoin.repository.TransactionRepository;
|
|
4
|
+import com.zipcoin.utilities.MerkelTreeRoot;
|
|
5
|
+import org.junit.Test;
|
|
6
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
7
|
+import org.springframework.context.annotation.Bean;
|
|
8
|
+import org.springframework.data.domain.Page;
|
|
9
|
+import org.springframework.data.domain.Pageable;
|
|
10
|
+import org.springframework.data.domain.Sort;
|
|
11
|
+
|
|
12
|
+import javax.annotation.Resource;
|
|
13
|
+import java.util.Iterator;
|
|
14
|
+import java.util.List;
|
|
15
|
+
|
|
16
|
+import static org.junit.Assert.*;
|
|
17
|
+
|
|
18
|
+public class TransactionTest {
|
|
19
|
+
|
|
20
|
+ @Resource
|
|
21
|
+ TransactionRepository repo;
|
|
22
|
+
|
|
23
|
+ @Test
|
|
24
|
+ public void getTransactionId() {
|
|
25
|
+ }
|
|
26
|
+
|
|
27
|
+ @Test
|
|
28
|
+ public void setTransactionId() {
|
|
29
|
+ }
|
|
30
|
+
|
|
31
|
+ @Test
|
|
32
|
+ public void getSender() {
|
|
33
|
+ }
|
|
34
|
+
|
|
35
|
+ @Test
|
|
36
|
+ public void setSender() {
|
|
37
|
+ }
|
|
38
|
+
|
|
39
|
+ @Test
|
|
40
|
+ public void getRecipient() {
|
|
41
|
+ }
|
|
42
|
+
|
|
43
|
+ @Test
|
|
44
|
+ public void setRecipient() {
|
|
45
|
+ }
|
|
46
|
+
|
|
47
|
+ @Test
|
|
48
|
+ public void getAmount() {
|
|
49
|
+ }
|
|
50
|
+
|
|
51
|
+ @Test
|
|
52
|
+ public void setAmount() {
|
|
53
|
+ }
|
|
54
|
+
|
|
55
|
+ @Test
|
|
56
|
+ public void testHashing() {
|
|
57
|
+
|
|
58
|
+ Iterable<Transaction> listOfTs = repo.findAll();
|
|
59
|
+ for (Transaction t : listOfTs) {
|
|
60
|
+ System.out.println(t.toString());
|
|
61
|
+ }
|
|
62
|
+ }
|
|
63
|
+}
|