Search in sources :

Example 11 with PropertiesBean

use of com.tvd12.properties.file.struct.PropertiesBean in project properties-file by tvd12.

the class PropertiesClassTest method notWrapperTest.

@Test
public void notWrapperTest() {
    PropertiesBean map = new PropertiesBean(ClassA.class);
    map.put("length", 1);
    map.put("value", "zzz");
    map.put("value", "yyy");
}
Also used : PropertiesBean(com.tvd12.properties.file.struct.PropertiesBean) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Example 12 with PropertiesBean

use of com.tvd12.properties.file.struct.PropertiesBean in project properties-file by tvd12.

the class PropertiesClassTest method wrapperTest2.

@Test
public void wrapperTest2() {
    PropertiesBean map = new PropertiesBean(ClassC.class);
    map.put("length", 1);
    map.put("value", "zzz");
    map.put("value", "yyy");
    map.put("clazz", ClassA.class);
    map.put("classD", new ClassD(1));
}
Also used : PropertiesBean(com.tvd12.properties.file.struct.PropertiesBean) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Example 13 with PropertiesBean

use of com.tvd12.properties.file.struct.PropertiesBean in project properties-file by tvd12.

the class PropertiesClassTest method transformClazzValidCaseTest.

@Test
public void transformClazzValidCaseTest() {
    PropertiesBean map = new PropertiesBean(ClassE.class);
    map.put("clazz", ClassA.class.toString());
}
Also used : PropertiesBean(com.tvd12.properties.file.struct.PropertiesBean) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Example 14 with PropertiesBean

use of com.tvd12.properties.file.struct.PropertiesBean in project properties-file by tvd12.

the class PropertiesClassTest method main.

public static void main(String[] args) {
    PropertiesBean map = new PropertiesBean(ClassE.class);
    map.put("clazz", ClassA.class.toString());
}
Also used : PropertiesBean(com.tvd12.properties.file.struct.PropertiesBean)

Example 15 with PropertiesBean

use of com.tvd12.properties.file.struct.PropertiesBean in project properties-file by tvd12.

the class PropertiesClassTest method transformClazzInvalidCaseTest.

@Test
public void transformClazzInvalidCaseTest() {
    PropertiesBean map = new PropertiesBean(ClassE.class);
    map.put("clazz", "classD");
}
Also used : PropertiesBean(com.tvd12.properties.file.struct.PropertiesBean) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Aggregations

PropertiesBean (com.tvd12.properties.file.struct.PropertiesBean)17 Test (org.testng.annotations.Test)15 BaseTest (com.tvd12.test.base.BaseTest)10 Properties (java.util.Properties)3 PropertyAnnotations (com.tvd12.properties.file.annotation.PropertyAnnotations)2