/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/protobuf/csharp/src/AddressBook/ |
D | Addressbook.cs | 41 …Person), global::Google.Protobuf.Examples.AddressBook.Person.Parser, new[]{ "Name", "Id", "Email",… in AddressbookReflection() 52 public sealed partial class Person : pb::IMessage<Person> { class 53 …private static readonly pb::MessageParser<Person> _parser = new pb::MessageParser<Person>(() => ne… 56 public static pb::MessageParser<Person> Parser { get { return _parser; } } 69 public Person() { in Person() method in Google.Protobuf.Examples.AddressBook.Person 76 public Person(Person other) : this() { in Person() method in Google.Protobuf.Examples.AddressBook.Person 86 public Person Clone() { in Clone() 87 return new Person(this); in Clone() 128 …private static readonly pb::FieldCodec<global::Google.Protobuf.Examples.AddressBook.Person.Types.P… 129 …= 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()
|
D | ListPeople.cs | 45 foreach (Person person in addressBook.People) in Print() 54 foreach (Person.Types.PhoneNumber phoneNumber in person.Phones) in Print() 58 case Person.Types.PhoneType.Mobile: in Print() 61 case Person.Types.PhoneType.Home: in Print() 64 case Person.Types.PhoneType.Work: in Print()
|
/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/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/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/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/protobuf/examples/ |
D | AddPerson.java | 4 import com.example.tutorial.AddressBookProtos.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()
|
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
|
D | list_people.cc | 17 const tutorial::Person& person = address_book.people(i); in ListPeople() 26 const tutorial::Person::PhoneNumber& phone_number = person.phones(j); in ListPeople() 29 case tutorial::Person::MOBILE: in ListPeople() 32 case tutorial::Person::HOME: in ListPeople() 35 case tutorial::Person::WORK: in ListPeople()
|
D | add_person.cc | 16 void PromptForAddress(tutorial::Person* person) { in PromptForAddress() 41 tutorial::Person::PhoneNumber* phone_number = person->add_phones(); in PromptForAddress() 48 phone_number->set_type(tutorial::Person::MOBILE); in PromptForAddress() 50 phone_number->set_type(tutorial::Person::HOME); in PromptForAddress() 52 phone_number->set_type(tutorial::Person::WORK); in PromptForAddress()
|
/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/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()
|
D | Person.java | 21 public class Person { class 26 public Person(String firstName, String lastName, Integer age) { in Person() method in Person 32 public Person() { in Person() method in Person 35 public Person(String lastName) { in Person() method in Person
|
/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/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/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()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/builder/ |
D | BuilderWithUnwrappedTest.java | 35 @JsonDeserialize(builder = Person.Builder.class) 36 final static class Person { class in BuilderWithUnwrappedTest 42 private Person(Builder builder) { in Person() method in BuilderWithUnwrappedTest.Person 91 Person build() { in build() 92 return new Person(this); in build() 221 Person person = mapper.readValue(json, Person.class); in testWithUnwrappedAndCreatorSingleParameterAtBeginning() 234 Person person = mapper.readValue(json, Person.class); in testWithUnwrappedAndCreatorSingleParameterInMiddle() 247 Person person = mapper.readValue(json, Person.class); in testWithUnwrappedAndCreatorSingleParameterAtEnd()
|
/external/javassist/src/test/javassist/tools/reflect/ |
D | Person.java | 13 public class Person { class 18 public Person(String name, int birthYear) { in Person() method in Person 24 Person.birth = birthYear; in Person() 36 Person person = new Person("Bob", 10); in main()
|
/external/libtextclassifier/java/src/com/android/textclassifier/ |
D | ActionsSuggestionsHelper.java | 19 import android.app.Person; 207 private static final Equivalence<Person> EQUIVALENCE = new PersonEquivalence(); 208 private static final Equivalence.Wrapper<Person> PERSON_USER_SELF = 211 private final Map<Equivalence.Wrapper<Person>, Integer> personToUserIdMap = new ArrayMap<>(); 214 private int encode(Person person) { 215 Wrapper<Person> personWrapper = EQUIVALENCE.wrap(person); 228 private static final class PersonEquivalence extends Equivalence<Person> { 231 protected boolean doEquivalent(Person a, Person b) { 238 protected int doHash(Person person) {
|