test_case_generator 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14a246d3107ede0d1c4fefa5959ff083dfa2636d
|
4
|
+
data.tar.gz: a0a1e24021c88a7819bde56ca2feb6a03a4f49a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e6984f7c893e3f78e4cd67b563c662a6e1e2ad20bdfe78c65c9ada953e244e514b307a573369b6b78ba52e161fbb399f3c4b0d57c9ac7978cc8c85288fcd29a
|
7
|
+
data.tar.gz: 7155b0420793306dbc2b88026f930345447af595c6705657660c282b3b67a324787e8cfb0882131cf3c84ae344beadc5aa37f119a2aa67fe15f8e18a8c81d787
|
@@ -83,7 +83,10 @@ module TestCaseGenerator
|
|
83
83
|
end
|
84
84
|
end
|
85
85
|
end
|
86
|
-
|
86
|
+
|
87
|
+
def seq(*args)
|
88
|
+
Utils.concat *args
|
89
|
+
end
|
87
90
|
|
88
91
|
def parallel(&block)
|
89
92
|
child_context = DSLContext.new
|
@@ -128,7 +131,10 @@ module TestCaseGenerator
|
|
128
131
|
end
|
129
132
|
end
|
130
133
|
end
|
131
|
-
|
134
|
+
|
135
|
+
def para(*args)
|
136
|
+
Utils.para *args
|
137
|
+
end
|
132
138
|
|
133
139
|
def def_state_machine(options={}, &block)
|
134
140
|
ctx = StateMachineContext.new(options)
|
@@ -58,6 +58,7 @@ import org.robolectric.annotation.Config;
|
|
58
58
|
import java.util.ArrayList;
|
59
59
|
|
60
60
|
import static org.junit.Assert.*;
|
61
|
+
import static org.mockito.Mockito.*;
|
61
62
|
|
62
63
|
@RunWith(RobolectricGradleTestRunner.class)
|
63
64
|
@Config(constants = BuildConfig.class, sdk = 18)
|
@@ -69,6 +70,10 @@ public class #{class_name} implements #{make_interface_name source_fn} {
|
|
69
70
|
Robolectric.getForegroundThreadScheduler().pause();
|
70
71
|
Robolectric.getBackgroundThreadScheduler().reset();
|
71
72
|
Robolectric.getBackgroundThreadScheduler().pause();
|
73
|
+
|
74
|
+
// Auto import 機能でimport文が削除されないようにするためのダミー
|
75
|
+
assertEquals("dummy", "dummy");
|
76
|
+
mock(String.class);
|
72
77
|
}
|
73
78
|
|
74
79
|
@After
|
@@ -6,6 +6,16 @@ module TestCaseGenerator
|
|
6
6
|
end.join
|
7
7
|
end
|
8
8
|
|
9
|
+
def self.concat(*args)
|
10
|
+
out_items = []
|
11
|
+
|
12
|
+
args.each do |arg|
|
13
|
+
self.concat! out_items, arg
|
14
|
+
end
|
15
|
+
|
16
|
+
out_items
|
17
|
+
end
|
18
|
+
|
9
19
|
def self.concat!(out_items, other_list)
|
10
20
|
if out_items.size == 0
|
11
21
|
out_items.concat other_list
|
@@ -26,6 +36,16 @@ module TestCaseGenerator
|
|
26
36
|
out_items
|
27
37
|
end
|
28
38
|
|
39
|
+
def self.para(*args)
|
40
|
+
out_items = []
|
41
|
+
|
42
|
+
args.each do |arg|
|
43
|
+
self.para! out_items, arg
|
44
|
+
end
|
45
|
+
|
46
|
+
out_items
|
47
|
+
end
|
48
|
+
|
29
49
|
def self.para!(out_items, other_list)
|
30
50
|
if out_items.size == 0
|
31
51
|
out_items.concat other_list
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_case_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaoru Yanase
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
137
|
version: '0'
|
138
138
|
requirements: []
|
139
139
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.
|
140
|
+
rubygems_version: 2.2.2
|
141
141
|
signing_key:
|
142
142
|
specification_version: 4
|
143
143
|
summary: Generates test-cases for Objective-C, python and etc..
|