/external/gson/gson/src/test/java/com/google/gson/functional/ |
D | StreamingTypeAdaptersTest.java | 46 truck.passengers = Arrays.asList(new Person("Jesse", 29), new Person("Jodie", 29)); in testSerialize() 59 assertEquals(Arrays.asList(new Person("Jesse", 29), new Person("Jodie", 29)), truck.passengers); in testDeserialize() 76 truck.passengers = Arrays.asList((Person) null); in testSerializeNullObject() 83 assertEquals(Arrays.asList((Person) null), truck.passengers); in testDeserializeNullObject() 89 truck.passengers = Arrays.asList(new Person("Jesse", 29), new Person("Jodie", 29)); in testSerializeWithCustomTypeAdapter() 97 assertEquals(Arrays.asList(new Person("Jesse", -1), new Person("Jodie", -1)), truck.passengers); in testDeserializeWithCustomTypeAdapter() 101 TypeAdapter<Person> personNameAdapter = new TypeAdapter<Person>() { in usePersonNameAdapter() 102 @Override public Person read(JsonReader in) throws IOException { in usePersonNameAdapter() 104 return new Person(name, -1); in usePersonNameAdapter() 106 @Override public void write(JsonWriter out, Person value) throws IOException { in usePersonNameAdapter() [all …]
|
/external/junit-params/src/test/java/junitparams/usage/person_example/ |
D | PersonTest.java | 19 assertThat(new Person(age).isAdult()).isEqualTo(valid); in isAdultAgeDirect() 25 assertThat(new Person(age).isAdult()).isEqualTo(valid); in isAdultAgeDefinedMethod() 35 assertThat(new Person(age).isAdult()).isEqualTo(valid); in isAdultAgeDefaultMethod() 45 public void personIsAdult(Person person, boolean valid) { in personIsAdult() 51 … return new Object[]{new Object[]{new Person(25), true}, new Object[]{new Person(32), true}}; in provideAdults() 55 … return new Object[]{new Object[]{new Person(12), false}, new Object[]{new Person(17), false}}; in provideTeens() 66 assertThat(new Person(age).isAdult()).isEqualTo(valid); in isAdultWithCustomTestName() 69 public static class Person { class in PersonTest 74 public Person(Integer age) { in Person() method in PersonTest.Person 78 public Person(String name, Integer age) { in Person() method in PersonTest.Person
|
/external/mockito/src/test/java/org/mockitousage/matchers/ |
D | CapturingArgumentsTest.java | 25 class Person { class in CapturingArgumentsTest 29 public Person(Integer age) { in Person() method in CapturingArgumentsTest.Person 48 Person person = new Person(i); in email() 55 boolean sendEmailTo(Person person); in sendEmailTo() 66 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_allow_assertions_on_captured_argument() 79 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_allow_assertions_on_all_captured_arguments() 93 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_allow_assertions_on_last_argument() 106 ArgumentCaptor<Person> person = ArgumentCaptor.forClass(Person.class); in should_print_captor_matcher() 121 ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class); in should_allow_assertions_on_captured_null() 135 ArgumentCaptor<List<Person>> argument = ArgumentCaptor.forClass(List.class); in should_allow_construction_of_captor_for_parameterized_type_in_a_convenient_way() [all …]
|
/external/mockito/src/test/java/org/mockitousage/stubbing/ |
D | CloningParameterTest.java | 29 verify(emailSender).sendEmail(1, new Person("Wes")); in shouldVerifyEvenIfArgumentsWereMutated() 33 Person person = new Person("Wes"); in businessLogic() 43 when(emailSender.getAllEmails(new Person("Wes"))).thenAnswer(new ClonesArguments()); in shouldReturnDefaultValueWithCloningAnswer() 46 List<?> emails = emailSender.getAllEmails(new Person("Wes")); in shouldReturnDefaultValueWithCloningAnswer() 52 public class Person { class in CloningParameterTest 57 public Person(String name) { in Person() method in CloningParameterTest.Person 83 Person other = (Person) obj; in equals() 104 void sendEmail(int i, Person person); in sendEmail() 106 List<?> getAllEmails(Person person); in getAllEmails()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/filter/ |
D | TestIgnoredTypes.java | 31 static class Person { class in TestIgnoredTypes 33 public Person() { } in Person() method in TestIgnoredTypes.Person 34 public Person(String name) { in Person() method in TestIgnoredTypes.Person 41 public Person person = new Person("Foo"); 84 module.setMixInAnnotation(Person.class, PersonMixin.class); in testSingleWithMixins() 94 module.setMixInAnnotation(Person.class, PersonMixin.class); in testListWithMixins() 97 List<Person> persons = new ArrayList<Person>(); in testListWithMixins() 98 persons.add(new Person("Bob")); in testListWithMixins()
|
/external/mockito/src/test/java/org/mockitousage/annotation/ |
D | CaptorAnnotationBasicTest.java | 25 public class Person { class in CaptorAnnotationBasicTest 29 public Person(String name, String surname) { in Person() method in CaptorAnnotationBasicTest.Person 44 void save(Person capture); in save() 50 peopleRepository.save(new Person(name, surname)); in createPerson() 59 ArgumentCaptor<Person> captor = ArgumentCaptor.forClass(Person.class); in shouldUseCaptorInOrdinaryWay() 65 @Captor ArgumentCaptor<Person> captor; 87 verify(peopleRepository).save((Person) genericLessCaptor.capture()); in shouldUseGenericlessAnnotatedCaptor() 88 assertEquals("Wes", ((Person) genericLessCaptor.getValue()).getName()); in shouldUseGenericlessAnnotatedCaptor() 89 assertEquals("Williams", ((Person) genericLessCaptor.getValue()).getSurname()); in shouldUseGenericlessAnnotatedCaptor()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/message2/ |
D | CustomFormatterPersonTest.java | 31 public static class Person { class in CustomFormatterPersonTest 36 public Person(String title, String firstName, String lastName) { in Person() method in CustomFormatterPersonTest.Person 73 if (toFormat instanceof Person) { in format() 74 Person person = (Person) toFormat; in format() 100 .setDefaultFormatterNameForType(Person.class, "person") 105 Person who = new Person("Mr.", "John", "Doe"); in testCustomFunctions() 150 Person femalePerson = new Person("Ms.", "Jane", "Doe"); in testCustomFunctionsComplexMessage() 151 Person malePerson = new Person("Mr.", "John", "Doe"); in testCustomFunctionsComplexMessage() 152 Person unknownPerson = new Person("Mr./Ms.", "Anonymous", "Doe"); in testCustomFunctionsComplexMessage()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/message2/ |
D | CustomFormatterPersonTest.java | 28 public static class Person { class in CustomFormatterPersonTest 33 public Person(String title, String firstName, String lastName) { in Person() method in CustomFormatterPersonTest.Person 70 if (toFormat instanceof Person) { in format() 71 Person person = (Person) toFormat; in format() 97 .setDefaultFormatterNameForType(Person.class, "person") 102 Person who = new Person("Mr.", "John", "Doe"); in testCustomFunctions() 147 Person femalePerson = new Person("Ms.", "Jane", "Doe"); in testCustomFunctionsComplexMessage() 148 Person malePerson = new Person("Mr.", "John", "Doe"); in testCustomFunctionsComplexMessage() 149 Person unknownPerson = new Person("Mr./Ms.", "Anonymous", "Doe"); in testCustomFunctionsComplexMessage()
|
/external/protobuf/csharp/src/AddressBook/ |
D | Addressbook.cs | 42 …Person), global::Google.Protobuf.Examples.AddressBook.Person.Parser, new[]{ "Name", "Id", "Email",… in AddressbookReflection() 53 public sealed partial class Person : pb::IMessage<Person> class 58 …private static readonly pb::MessageParser<Person> _parser = new pb::MessageParser<Person>(() => ne… 62 public static pb::MessageParser<Person> Parser { get { return _parser; } } 78 public Person() { in Person() method in Google.Protobuf.Examples.AddressBook.Person 86 public Person(Person other) : this() { in Person() method in Google.Protobuf.Examples.AddressBook.Person 97 public Person Clone() { in Clone() 98 return new Person(this); in Clone() 142 …private static readonly pb::FieldCodec<global::Google.Protobuf.Examples.AddressBook.Person.Types.P… 143 …= pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNum… [all …]
|
D | AddPerson.cs | 43 private static Person PromptForAddress(TextReader input, TextWriter output) in PromptForAddress() 45 Person person = new Person(); in PromptForAddress() 69 … Person.Types.PhoneNumber phoneNumber = new Person.Types.PhoneNumber { Number = number }; in PromptForAddress() 76 phoneNumber.Type = Person.Types.PhoneType.Mobile; in PromptForAddress() 79 phoneNumber.Type = Person.Types.PhoneType.Home; in PromptForAddress() 82 phoneNumber.Type = Person.Types.PhoneType.Work; in PromptForAddress()
|
D | SampleUsage.cs | 44 Person person = new Person in Main() 49 Phones = { new Person.Types.PhoneNumber { Number = "555-1212" } } in Main() 57 Person copy = Person.Parser.ParseFrom(bytes); in Main()
|
/external/cronet/third_party/protobuf/csharp/src/AddressBook/ |
D | Addressbook.cs | 42 …Person), global::Google.Protobuf.Examples.AddressBook.Person.Parser, new[]{ "Name", "Id", "Email",… in AddressbookReflection() 53 public sealed partial class Person : pb::IMessage<Person> class 58 …private static readonly pb::MessageParser<Person> _parser = new pb::MessageParser<Person>(() => ne… 62 public static pb::MessageParser<Person> Parser { get { return _parser; } } 78 public Person() { in Person() method in Google.Protobuf.Examples.AddressBook.Person 86 public Person(Person other) : this() { in Person() method in Google.Protobuf.Examples.AddressBook.Person 97 public Person Clone() { in Clone() 98 return new Person(this); in Clone() 142 …private static readonly pb::FieldCodec<global::Google.Protobuf.Examples.AddressBook.Person.Types.P… 143 …= pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNum… [all …]
|
D | AddPerson.cs | 43 private static Person PromptForAddress(TextReader input, TextWriter output) in PromptForAddress() 45 Person person = new Person(); in PromptForAddress() 69 … Person.Types.PhoneNumber phoneNumber = new Person.Types.PhoneNumber { Number = number }; in PromptForAddress() 76 phoneNumber.Type = Person.Types.PhoneType.Mobile; in PromptForAddress() 79 phoneNumber.Type = Person.Types.PhoneType.Home; in PromptForAddress() 82 phoneNumber.Type = Person.Types.PhoneType.Work; in PromptForAddress()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/filter/ |
D | RecursiveIgnorePropertiesTest.java | 12 static class Person { class in RecursiveIgnorePropertiesTest 17 public Person personZ; 41 Person result = MAPPER.readValue(st, Person.class); in testRecursiveForDeser() 60 Person input = new Person(); in testRecursiveForSer() 62 Person p2 = new Person(); in testRecursiveForSer()
|
D | ReadOnlyDeser1890Test.java | 35 public static class Person { class in ReadOnlyDeser1890Test 40 Person() { } in Person() method in ReadOnlyDeser1890Test.Person 42 public Person(TestEnum testEnum, String name) { in Person() method in ReadOnlyDeser1890Test.Person 84 Person person = MAPPER.readValue("{\"testEnum\":\"\"}", Person.class); in testDeserializeOneField() 90 Person person = MAPPER.readValue("{\"testEnum\":\"\",\"name\":\"changyong\"}", in testDeserializeTwoFields() 91 Person.class); in testDeserializeTwoFields()
|
/external/cronet/third_party/protobuf/examples/ |
D | AddPerson.java | 4 import com.example.tutorial.protos.Person; 15 static Person PromptForAddress(BufferedReader stdin, in PromptForAddress() 17 Person.Builder person = Person.newBuilder(); in PromptForAddress() 38 Person.PhoneNumber.Builder phoneNumber = in PromptForAddress() 39 Person.PhoneNumber.newBuilder().setNumber(number); in PromptForAddress() 44 phoneNumber.setType(Person.PhoneType.MOBILE); in PromptForAddress() 46 phoneNumber.setType(Person.PhoneType.HOME); in PromptForAddress() 48 phoneNumber.setType(Person.PhoneType.WORK); in PromptForAddress()
|
/external/protobuf/examples/ |
D | AddPerson.java | 4 import com.example.tutorial.protos.Person; 15 static Person PromptForAddress(BufferedReader stdin, in PromptForAddress() 17 Person.Builder person = Person.newBuilder(); in PromptForAddress() 38 Person.PhoneNumber.Builder phoneNumber = in PromptForAddress() 39 Person.PhoneNumber.newBuilder().setNumber(number); in PromptForAddress() 44 phoneNumber.setType(Person.PhoneType.MOBILE); in PromptForAddress() 46 phoneNumber.setType(Person.PhoneType.HOME); in PromptForAddress() 48 phoneNumber.setType(Person.PhoneType.WORK); in PromptForAddress()
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/ |
D | ConstructorTest.java | 51 assertTrue("Unexpected: " + obj.getClass().toString(), obj instanceof Person); in testGetBeanAssumeClass() 52 Person person = (Person) obj; in testGetBeanAssumeClass() 65 assertTrue(obj.getClass().toString(), obj instanceof Person); in testGetConstructorBean() local 66 Person person = (Person) obj; in testGetConstructorBean() 79 assertTrue(obj.getClass().toString(), obj instanceof Person); in testGetConstructorFromScalar() local 80 Person person = (Person) obj; in testGetConstructorFromScalar()
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue8/ |
D | PrattleRepresenterTest.java | 29 Person person = new Person("Alan", "Gutierrez", 9); in test() 39 Person person = new Person("Alan", "Gutierrez", 9); in test2beans() 49 private Person owner; 51 public Horse(String name, Person owner) { in Horse() 61 public Person getOwner() { in getOwner()
|
D | Person.java | 23 public class Person implements Serializable { class 29 public Person() { in Person() method in Person 32 public Person(String firstName, String lastName, int hatSize) { in Person() method in Person 64 if (object instanceof Person) { in equals() 65 Person person = (Person) object; in equals()
|
/external/snakeyaml/src/test/java8/org/yaml/snakeyaml/issues/issue310/ |
D | OptionalTest.java | 81 public static class Person { class in OptionalTest 130 Person expectedPerson = new Person(); in testOptionaStringLoad() 136 final Person pFromStr = yamlParser.loadAs(yamlStr, Person.class); in testOptionaStringLoad() 145 Person expectedPerson = new Person(); in testOptionalDumpLoad() 153 final Person pFromDump = yamlParser.loadAs(pDump, Person.class); in testOptionalDumpLoad()
|
/external/testng/src/test/java/test/mustache/ |
D | MustacheTest.java | 19 public static class Person { class in MustacheTest 21 public Person(String n) { in Person() method in MustacheTest.Person 33 private static final List<Person> PEOPLE = new ArrayList<>( 34 Arrays.asList(new Person("Carl"), new Person("Christopher"))); 62 create("person", new Person("John"), "day", "Monday"), in dp() 68 create("person", new Person("John"), "name", "Carl"), in dp()
|
/external/protobuf/examples/go/cmd/list_people/ |
D | list_people_test.go | 14 p := pb.Person{ 25 want := `Person ID: 1234 37 in := pb.AddressBook{People: []*pb.Person{ 76 want := strings.Split(`Person ID: 101 79 Person ID: 102 81 Person ID: 201 85 Person ID: 301 91 Person ID: 1001
|
/external/cronet/third_party/protobuf/examples/go/cmd/list_people/ |
D | list_people_test.go | 14 p := pb.Person{ 25 want := `Person ID: 1234 37 in := pb.AddressBook{People: []*pb.Person{ 76 want := strings.Split(`Person ID: 101 79 Person ID: 102 81 Person ID: 201 85 Person ID: 301 91 Person ID: 1001
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue310/ |
D | PropertyWithPrivateCostructorTest.java | 49 Person loadedPerson = yaml().loadAs(yamlStr, Person.class); in loadFromString() 59 Person person = new Person(123, "Neo Anderson", Option.valueOf(123456.78)); in dumpNload() 63 Person loadedPerson = yaml().loadAs(dump, Person.class); in dumpNload()
|