Skip to content

Commit 46d99ab

Browse files
marcelmaatkampdaivanov
authored andcommitted
Added CharSequence Test
1 parent 2962637 commit 46d99ab

File tree

3 files changed

+39
-4
lines changed

3 files changed

+39
-4
lines changed

pom.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,14 @@
216216
<plugin>
217217
<groupId>org.apache.maven.plugins</groupId>
218218
<artifactId>maven-compiler-plugin</artifactId>
219-
<version>3.8.0</version>
219+
<version>3.10.1</version>
220220
<configuration>
221221
<jdkToolchain>
222-
<version>6</version>
222+
<version>7</version>
223223
</jdkToolchain>
224-
<target>1.6</target>
225-
</configuration>
224+
<target>7</target>s
225+
<source>7</source>
226+
</configuration>
226227
</plugin>
227228
<plugin>
228229
<groupId>org.apache.maven.plugins</groupId>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
}

src/test/java/uk/co/jemos/podam/test/unit/features/basicTypes/PodamFactoryBasicTypesTest.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,18 @@ public void podamShouldFillJavaNativeTypes() throws Exception {
260260

261261
}
262262

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+
263275
@Test
264276
@Title("Podam should fill arrays with elements")
265277
public void podamShouldFillArraysWithElements() throws Exception {

0 commit comments

Comments
 (0)