Пример #1
0
 @Test
 public void parseText() {
   sensei
       .assertParseText("P.O. Box 1234\\;;Apt\\, 11;123 Main St;Austin;TX;12345;USA")
       .run(is(withAllFields));
   sensei.assertParseText("P.O. Box 1234\\;;;;Austin;TX;12345;").run(is(withSomeFields));
   sensei.assertParseText(";;;;;;").run(is(empty));
   sensei.assertParseText("").run(is(empty));
 }
 @Test
 public void parseText() {
   final VCardParameters params = new VCardParameters();
   sensei
       .assertParseText("value")
       .dataType(VCardDataType.TEXT)
       .warnings(1)
       .params(params)
       .run(
           new Check<TestProperty>() {
             public void check(TestProperty property) {
               assertEquals("value", property.value);
               assertEquals(VCardDataType.TEXT, property.parsedDataType);
               assertSame(params, property.getParameters());
             }
           });
 }
Пример #3
0
 @Test
 public void parseText() {
   Email expected = new Email("*****@*****.**");
   sensei.assertParseText("*****@*****.**").run(expected);
 }