File tree Expand file tree Collapse file tree
src/test/groovy/org/arkecosystem/client/api/two Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package org.arkecosystem.client.api.two
2+
3+ import spock.lang.Specification
4+ import org.arkecosystem.client.MockHelper
5+
6+ class TransactionsTest extends Specification {
7+ def " all" () {
8+ setup :
9+ def connection = MockHelper . connection(2 )
10+ when :
11+ def actual = connection. api(' transactions' ). all()
12+ then :
13+ actual. success == true
14+ }
15+
16+ // def "create"() {
17+ // setup:
18+ // def connection = MockHelper.connection(2)
19+ // when:
20+ // def actual = connection.api('transactions').create()
21+ // then:
22+ // actual.success == true
23+ // }
24+
25+ def " show" () {
26+ setup :
27+ def connection = MockHelper . connection(2 )
28+ when :
29+ def actual = connection. api(' transactions' ). show(" dummy" )
30+ then :
31+ actual. success == true
32+ }
33+
34+ def " allUnconfirmed" () {
35+ setup :
36+ def connection = MockHelper . connection(2 )
37+ when :
38+ def actual = connection. api(' transactions' ). allUnconfirmed()
39+ then :
40+ actual. success == true
41+ }
42+
43+ def " showUnconfirmed" () {
44+ setup :
45+ def connection = MockHelper . connection(2 )
46+ when :
47+ def actual = connection. api(' transactions' ). showUnconfirmed(" dummy" )
48+ then :
49+ actual. success == true
50+ }
51+
52+ def " search" () {
53+ setup :
54+ def connection = MockHelper . connection(2 )
55+ when :
56+ def actual = connection. api(' transactions' ). search()
57+ then :
58+ actual. success == true
59+ }
60+
61+ def " types" () {
62+ setup :
63+ def connection = MockHelper . connection(2 )
64+ when :
65+ def actual = connection. api(' transactions' ). types()
66+ then :
67+ actual. success == true
68+ }
69+ }
You can’t perform that action at this time.
0 commit comments