use of net.andreinc.mockneat.github.model.Test in project mockneat by nomemory.
the class GenerateObjs method main.
public static void main(String[] args) {
MockNeat mock = MockNeat.threadLocal();
Test t = mock.reflect(Test.class).field("x", mock.strings().size(10)).field("y", mock.ints().range(100, 200)).field("z", mock.bools()).val();
System.out.println(t);
List<Test> tR = mock.reflect(Test.class).useDefaults(true).list(5).val();
System.out.println("tR: " + tR);
Test t2 = mock.constructor(Test.class).params(mock.strings().size(10), mock.ints().range(0, 10), mock.bools()).val();
System.out.println(t2);
Test t3 = mock.factory(Test.class, TestFactory.class).method("buildTest").params(mock.strings(), 1, true).val();
System.out.println(t3);
Test2 t4 = mock.reflect(Test2.class).useDefaults(true).type(String.class, mock.strings().size(5)).type(Short.class, (short) 5).val();
System.out.println(t4);
}
use of net.andreinc.mockneat.github.model.Test in project mockneat by nomemory.
the class GenerateMockUnitArray method main.
public static void main(String[] args) {
MockNeat m = MockNeat.threadLocal();
MockUnit<Test> mockUnit = m.constructor(Test.class).params(m.strings(), m.ints(), m.bools());
Test[] ex = { null };
Test[] t = m.from(ex).array(Test.class, 10).val();
for (Test ti : t) {
System.out.println(ti);
}
}
Aggregations