Search in sources :

Example 36 with Person

use of sqlite.feature.many2many.case5.model.Person in project compss by bsc-wdc.

the class Internal method testPSCOReturn.

private static void testPSCOReturn() {
    String id = "person_" + UUID.randomUUID().toString();
    Person p = InternalImpl.taskPSCOReturn("PName3", 3, 3, id);
    String name = p.getName();
    int age = p.getAge();
    int numC = p.getNumComputers();
    System.out.println("[LOG][PSCO_RETURN] Person " + name + " with age " + age + " has " + numC + " computers");
    System.out.println("[LOG][PSCO_RETURN] BeginId = " + id + " EndId = " + p.getID());
}
Also used : Person(model.Person)

Example 37 with Person

use of sqlite.feature.many2many.case5.model.Person in project compss by bsc-wdc.

the class Internal method testPSCOInOutTaskPersisted.

private static void testPSCOInOutTaskPersisted() {
    Person p = new Person("PName2", 2, 2);
    String id = InternalImpl.taskPSCOInOutTaskPersisted(p);
    String name = p.getName();
    int age = p.getAge();
    int numC = p.getNumComputers();
    System.out.println("[LOG][PSCO_INOUT_TP] Person " + name + " with age " + age + " has " + numC + " computers");
    System.out.println("[LOG][PSCO_INOUT_TP] BeginId = " + id + " EndId = " + p.getID());
}
Also used : Person(model.Person)

Example 38 with Person

use of sqlite.feature.many2many.case5.model.Person in project compss by bsc-wdc.

the class Internal method testPSCOTargetTaskPersisted.

private static void testPSCOTargetTaskPersisted() {
    String id = "person_" + UUID.randomUUID().toString();
    Person p = new Person("PName1", 1, 1);
    p.taskPSCOTargetTaskPersisted(id);
    String name = p.getName();
    int age = p.getAge();
    int numC = p.getNumComputers();
    System.out.println("[LOG][PSCO_TARGET_TP] Person " + name + " with age " + age + " has " + numC + " computers");
    System.out.println("[LOG][PSCO_TARGET_TP] BeginId = null EndId = " + p.getID());
}
Also used : Person(model.Person)

Example 39 with Person

use of sqlite.feature.many2many.case5.model.Person in project compss by bsc-wdc.

the class Internal method testPSCOTarget.

private static void testPSCOTarget() {
    String id = "person_" + UUID.randomUUID().toString();
    Person p = new Person("PName1", 1, 1);
    p.makePersistent(id);
    // Invoke 2 times to check if parameter is well returned from worker
    p.taskPSCOTarget();
    p.taskPSCOTarget();
    String name = p.getName();
    int age = p.getAge();
    int numC = p.getNumComputers();
    System.out.println("[LOG][PSCO_TARGET] Person " + name + " with age " + age + " has " + numC + " computers");
    System.out.println("[LOG][PSCO_TARGET] BeginId = " + id + " EndId = " + p.getID());
}
Also used : Person(model.Person)

Example 40 with Person

use of sqlite.feature.many2many.case5.model.Person in project compss by bsc-wdc.

the class Internal method testPSCOReturnNoTaskPersisted.

private static void testPSCOReturnNoTaskPersisted() {
    Person p = InternalImpl.taskPSCOReturnNoTaskPersisted("PName3", 3, 3);
    String name = p.getName();
    int age = p.getAge();
    int numC = p.getNumComputers();
    System.out.println("[LOG][PSCO_RETURN_NTP] Person " + name + " with age " + age + " has " + numC + " computers");
    System.out.println("[LOG][PSCO_RETURN_NTP] BeginId = null EndId = " + p.getID());
}
Also used : Person(model.Person)

Aggregations

Person (com.google.api.services.people.v1.model.Person)25 VCard (ezvcard.VCard)20 Test (org.junit.Test)16 EmailAddress (com.google.api.services.people.v1.model.EmailAddress)15 PhoneNumber (com.google.api.services.people.v1.model.PhoneNumber)13 Email (ezvcard.property.Email)13 Telephone (ezvcard.property.Telephone)13 Person (model.Person)13 List (java.util.List)12 Collectors (java.util.stream.Collectors)12 Name (com.google.api.services.people.v1.model.Name)11 StructuredName (ezvcard.property.StructuredName)11 Truth.assertThat (com.google.common.truth.Truth.assertThat)10 Pair (com.google.gdata.util.common.base.Pair)10 Collections (java.util.Collections)10 Function (java.util.function.Function)10 Address (com.google.api.services.people.v1.model.Address)9 Nullable (com.google.gdata.util.common.base.Nullable)8 Before (org.junit.Before)8 SOURCE_PARAM_NAME_TYPE (org.dataportabilityproject.datatransfer.google.common.GoogleStaticObjects.SOURCE_PARAM_NAME_TYPE)6