org.springframework.expression.spel.testresources.PlaceOfBirth Java Examples
The following examples show how to use
org.springframework.expression.spel.testresources.PlaceOfBirth.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestScenarioCreator.java From spring-analysis-note with MIT License | 5 votes |
/** * Create the root context object, an Inventor instance. Non-qualified property * and method references will be resolved against this context object. * @param testContext the evaluation context in which to set the root object */ private static void setupRootContextObject(StandardEvaluationContext testContext) { GregorianCalendar c = new GregorianCalendar(); c.set(1856, 7, 9); Inventor tesla = new Inventor("Nikola Tesla", c.getTime(), "Serbian"); tesla.setPlaceOfBirth(new PlaceOfBirth("SmilJan")); tesla.setInventions(new String[] { "Telephone repeater", "Rotating magnetic field principle", "Polyphase alternating-current system", "Induction motor", "Alternating-current power transmission", "Tesla coil transformer", "Wireless communication", "Radio", "Fluorescent lights" }); testContext.setRootObject(tesla); }
Example #2
Source File: TestScenarioCreator.java From java-technology-stack with MIT License | 5 votes |
/** * Create the root context object, an Inventor instance. Non-qualified property * and method references will be resolved against this context object. * @param testContext the evaluation context in which to set the root object */ private static void setupRootContextObject(StandardEvaluationContext testContext) { GregorianCalendar c = new GregorianCalendar(); c.set(1856, 7, 9); Inventor tesla = new Inventor("Nikola Tesla", c.getTime(), "Serbian"); tesla.setPlaceOfBirth(new PlaceOfBirth("SmilJan")); tesla.setInventions(new String[] { "Telephone repeater", "Rotating magnetic field principle", "Polyphase alternating-current system", "Induction motor", "Alternating-current power transmission", "Tesla coil transformer", "Wireless communication", "Radio", "Fluorescent lights" }); testContext.setRootObject(tesla); }
Example #3
Source File: TestScenarioCreator.java From spring4-understanding with Apache License 2.0 | 5 votes |
/** * Create the root context object, an Inventor instance. Non-qualified property * and method references will be resolved against this context object. * @param testContext the evaluation context in which to set the root object */ private static void setupRootContextObject(StandardEvaluationContext testContext) { GregorianCalendar c = new GregorianCalendar(); c.set(1856, 7, 9); Inventor tesla = new Inventor("Nikola Tesla", c.getTime(), "Serbian"); tesla.setPlaceOfBirth(new PlaceOfBirth("SmilJan")); tesla.setInventions(new String[] { "Telephone repeater", "Rotating magnetic field principle", "Polyphase alternating-current system", "Induction motor", "Alternating-current power transmission", "Tesla coil transformer", "Wireless communication", "Radio", "Fluorescent lights" }); testContext.setRootObject(tesla); }
Example #4
Source File: SetValueTests.java From spring-analysis-note with MIT License | 4 votes |
@Test public void testSetListElementValue() { setValue("placesLivedList[0]", new PlaceOfBirth("Wien")); }
Example #5
Source File: SetValueTests.java From java-technology-stack with MIT License | 4 votes |
@Test public void testSetListElementValue() { setValue("placesLivedList[0]", new PlaceOfBirth("Wien")); }
Example #6
Source File: SetValueTests.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Test public void testSetListElementValue() { setValue("placesLivedList[0]", new PlaceOfBirth("Wien")); }
Example #7
Source File: ConstructorInvocationTests.java From spring-analysis-note with MIT License | 2 votes |
public Tester(PlaceOfBirth pob) { }
Example #8
Source File: ConstructorInvocationTests.java From java-technology-stack with MIT License | 2 votes |
public Tester(PlaceOfBirth pob) { }
Example #9
Source File: ConstructorInvocationTests.java From spring4-understanding with Apache License 2.0 | 2 votes |
public Tester(PlaceOfBirth pob) { }