use of spold2.Person in project kripton by xcesco.
the class TestRuntimeNamespace3 method testRun.
/**
* Test run.
*
* @throws Exception the exception
*/
@Test
public void testRun() throws Exception {
Person person = new Person();
person.birthday = new Date();
person.name = "toni";
person.surname = "manero";
person.tags = new ArrayList<String>();
person.tags.add("test1");
check(person);
}
use of spold2.Person in project kripton by xcesco.
the class TestRuntimeNamespace4 method testRun.
/**
* Test run.
*
* @throws Exception the exception
*/
@Test
public void testRun() throws Exception {
Person person = new Person();
person.birthday = new Date();
person.name = "toni";
person.surname = "manero";
person.tags = new HashMap<String, String>();
person.tags.put("test1", "test2");
check(person);
}
use of spold2.Person in project olca-modules by GreenDelta.
the class ProcessDoc method addPerson.
private Person addPerson(Actor actor) {
for (Person person : dataSet.masterData.persons) {
if (Objects.equals(actor.refId, person.id))
return person;
}
Person person = new Person();
person.id = actor.refId;
person.name = actor.name;
person.address = getAddress(actor);
String email = actor.email != null ? actor.email : "no@mail.net";
person.email = email;
person.name = actor.name;
person.telefax = actor.telefax;
person.telephone = actor.telephone;
person.companyId = "b35ea934-b41d-4830-b1aa-c7c678270240";
person.company = "UKNWN";
dataSet.masterData.persons.add(person);
addDefaultCompany();
return person;
}
use of spold2.Person in project olca-modules by GreenDelta.
the class ProcessDoc method mapDataGenerator.
private void mapDataGenerator(AdminInfo adminInfo) {
DataGenerator generator = new DataGenerator();
adminInfo.dataGenerator = generator;
generator.isCopyrightProtected = doc.copyright;
mapPublication(generator);
Actor actor = doc.dataGenerator;
if (actor == null) {
generator.personEmail = "no@email.com";
generator.personId = "788d0176-a69c-4de0-a5d3-259866b6b100";
generator.personName = "[Current User]";
} else {
Person person = addPerson(actor);
generator.personEmail = person.email;
generator.personId = person.id;
generator.personName = person.email;
}
}
use of spold2.Person in project practice-codes by ParkJiwoon.
the class CachePersonRepositoryTest method test.
@Test
@DisplayName("캐시 적용한 PersonRepository 저장/찾기 테스트 하면 찾을 때 Real Repo 는 조회 안함")
void test() {
// given
Person person = new Person(1L, "woody", 30);
// when
cachePersonRepository.save(person);
// then
Person findPerson = cachePersonRepository.find(1L);
assertThat(person).isEqualTo(findPerson);
}
Aggregations