Package org.springframework.beans

Examples of org.springframework.beans.Employee


    // Verifying dependency injection:
    assertNotNull("The pet field should have been autowired.", this.pet);

    // Verifying 'parameterized' support:
    final Employee employee = (Employee) this.applicationContext.getBean(this.employeeBeanName);
    employees.add(employee);
    assertEquals("Verifying the name of the employee configured as bean [" + this.employeeBeanName + "].",
      this.employeeName, employee.getName());
  }
View Full Code Here


    @NotTransactional
    public void verifyApplicationContextSet() {
        assertInTransaction(false);
        assertNotNull(super.applicationContext,
                "The application context should have been set due to ApplicationContextAware semantics.");
        Employee employeeBean = (Employee) super.applicationContext.getBean("employee");
        assertEquals(employeeBean.getName(), "John Smith", "Verifying employee's name.");
    }
View Full Code Here

TOP

Related Classes of org.springframework.beans.Employee

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.