File tree Expand file tree Collapse file tree 3 files changed +39
-4
lines changed
src/test/java/uk/co/jemos/podam/test Expand file tree Collapse file tree 3 files changed +39
-4
lines changed Original file line number Diff line number Diff line change 216
216
<plugin >
217
217
<groupId >org.apache.maven.plugins</groupId >
218
218
<artifactId >maven-compiler-plugin</artifactId >
219
- <version >3.8.0 </version >
219
+ <version >3.10.1 </version >
220
220
<configuration >
221
221
<jdkToolchain >
222
- <version >6 </version >
222
+ <version >7 </version >
223
223
</jdkToolchain >
224
- <target >1.6</target >
225
- </configuration >
224
+ <target >7</target >s
225
+ <source >7</source >
226
+ </configuration >
226
227
</plugin >
227
228
<plugin >
228
229
<groupId >org.apache.maven.plugins</groupId >
Original file line number Diff line number Diff line change
1
+ /**
2
+ *
3
+ */
4
+ package uk .co .jemos .podam .test .dto ;
5
+
6
+ /**
7
+ * POJO to test when Podam sets signle letter fields with number.
8
+ *
9
+ * @author marcelmaatkamp
10
+ *
11
+ */
12
+ public class CharSequencePojo {
13
+ private CharSequence v1 ;
14
+
15
+ public CharSequence getV1 () {
16
+ return v1 ;
17
+ }
18
+
19
+ public void setV1 (CharSequence v1 ) {
20
+ this .v1 = v1 ;
21
+ }
22
+ }
Original file line number Diff line number Diff line change @@ -260,6 +260,18 @@ public void podamShouldFillJavaNativeTypes() throws Exception {
260
260
261
261
}
262
262
263
+ @ Test
264
+ @ Title ("Podam should fill CharSequence type" )
265
+ public void podamShouldFillCharSequenceType () throws Exception {
266
+
267
+ PodamFactory podamFactory = podamFactorySteps .givenAStandardPodamFactory ();
268
+
269
+ CharSequencePojo pojo = podamInvocationSteps .whenIInvokeTheFactoryForClass (CharSequencePojo .class , podamFactory );
270
+ podamValidationSteps .thePojoMustBeOfTheType (pojo , CharSequencePojo .class );
271
+ podamValidationSteps .thePojoMustBeOfTheType (pojo .getV1 (), CharSequence .class );
272
+
273
+ }
274
+
263
275
@ Test
264
276
@ Title ("Podam should fill arrays with elements" )
265
277
public void podamShouldFillArraysWithElements () throws Exception {
You can’t perform that action at this time.
0 commit comments