test_class.file: dddlib-examples/organisation-project/organisation-domain/src/test/java/org/dddlib/organisation/domain/EmploymentTest.java
test_class.identifier: EmploymentTest
test_class.superclass: extends AbstractIntegrationTest
test_case.body: @Test
      public final void testGetEmployer() {
          OrganisationUtils organisationUtils = new OrganisationUtils();
          Date date = DateUtils.date(2012, 1, 3);
          Company company = organisationUtils.createCompany("总公司", date);
          Person zhang = organisationUtils.createPerson("三", "张");
          Employee zhangsan = organisationUtils.createEmployee(zhang, date);
          Person li = organisationUtils.createPerson("四", "李");
          Employee lisi = organisationUtils.createEmployee(li, date);
          new Employment(company, zhangsan, date).save();
          assertThat("张三的雇主应该是company",
                  Employment.getEmployer(zhangsan, DateUtils.date(2012, 1, 3)),
                  is(company));
          assertThat("李四的雇主不是company",
                  Employment.getEmployer(lisi, DateUtils.date(2012, 1, 3)),
                  not(is(company)));
      }
test_case.class_method_signature: EmploymentTest.testGetEmployer()
test_case.full_signature: @Test public final void testGetEmployer()
test_case.identifier: testGetEmployer
test_case.invocations: date createCompany createPerson createEmployee createPerson createEmployee save assertThat getEmployer date is assertThat getEmployer date not is
test_case.modifiers: @Test public final
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetEmployer()
focal_class.declarator: serialVersionUID = 7390804525640459582L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 7390804525640459582L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.file: dddlib-examples/organisation-project/organisation-domain/src/main/java/org/dddlib/organisation/domain/Employment.java
focal_class.identifier: Employment
focal_class.class_method_signature: Employment.Employment()
focal_class.full_signature: protected  Employment()
focal_class.identifier: Employment
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  Employment()
focal_class.class_method_signature: Employment.Employment(Company company, Employee employee, Date date)
focal_class.full_signature: public  Employment(Company company, Employee employee, Date date)
focal_class.identifier: Employment
focal_class.modifiers: public
focal_class.parameters: (Company company, Employee employee, Date date)
focal_class.signature:  Employment(Company company, Employee employee, Date date)
focal_class.class_method_signature: Employment.getEmployer(Employee employee, Date date)
focal_class.full_signature: public static Company getEmployer(Employee employee, Date date)
focal_class.identifier: getEmployer
focal_class.modifiers: public static
focal_class.parameters: (Employee employee, Date date)
focal_class.return: Company
focal_class.signature: Company getEmployer(Employee employee, Date date)
focal_class.class_method_signature: Employment.getEmployees(Company employer, Date date)
focal_class.full_signature: public static List<Employee> getEmployees(Company employer, Date date)
focal_class.identifier: getEmployees
focal_class.modifiers: public static
focal_class.parameters: (Company employer, Date date)
focal_class.return: List<Employee>
focal_class.signature: List<Employee> getEmployees(Company employer, Date date)
focal_class.class_method_signature: Employment.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.superclass: extends Accountability<Company, Employee>
focal_method.body: public static Company getEmployer(Employee employee, Date date) {
          return getRepository().createNamedQuery("Employment.getEmployer")
                  .addParameter("employee", employee).addParameter("date", date).singleResult();
      }
focal_method.class_method_signature: Employment.getEmployer(Employee employee, Date date)
focal_method.full_signature: public static Company getEmployer(Employee employee, Date date)
focal_method.identifier: getEmployer
focal_method.invocations: singleResult addParameter addParameter createNamedQuery getRepository
focal_method.modifiers: public static
focal_method.parameters: (Employee employee, Date date)
focal_method.return: Company
focal_method.signature: Company getEmployer(Employee employee, Date date)