Example #1
0
 @Test
 public void dateTimeNull() throws Exception {
   try {
     client.getQueries().dateTimeNull(null);
   } catch (ServiceException ex) {
     Assert.assertTrue(ex.getMessage().contains("Parameter dateTimePath is required"));
   }
 }
Example #2
0
 @Test
 public void arrayStringTsvValid() throws Exception {
   List<String> query = new ArrayList<>();
   query.add("ArrayQuery1");
   query.add("begin!*'();:@ &=+$,/?#[]end");
   query.add(null);
   query.add("");
   client.getQueries().arrayStringTsvValid(query);
 }
Example #3
0
 @Ignore("Fixed when OkHttp 2.6 comes out")
 public void arrayStringPipesValid() throws Exception {
   List<String> query = new ArrayList<>();
   query.add("ArrayQuery1");
   query.add("begin!*'();:@ &=+$,/?#[]end");
   query.add(null);
   query.add("");
   client.getQueries().arrayStringPipesValid(query);
 }
Example #4
0
 @Test
 public void floatScientificNegative() throws Exception {
   client.getQueries().floatScientificNegative(-1.034E-20);
 }
Example #5
0
 @Test
 public void getLongNull() throws Exception {
   client.getQueries().getLongNull(null);
 }
Example #6
0
 @Test
 public void floatScientificPositive() throws Exception {
   client.getQueries().floatScientificPositive(1.034E+20);
 }
Example #7
0
 @Test
 public void getTenBillion() throws Exception {
   client.getQueries().getTenBillion(10000000000l);
 }
Example #8
0
 @Test
 public void getNegativeTenBillion() throws Exception {
   client.getQueries().getNegativeTenBillion(-10000000000l);
 }
Example #9
0
 @Test
 public void getBooleanFalse() throws Exception {
   client.getQueries().getBooleanFalse(false);
 }
Example #10
0
 @Test
 public void getIntNegativeOneMillion() throws Exception {
   client.getQueries().getIntNegativeOneMillion(-1000000);
 }
Example #11
0
 @Test
 public void doubleNull() throws Exception {
   client.getQueries().doubleNull(null);
 }
Example #12
0
 @Test
 public void enumValid() throws Exception {
   client.getQueries().enumValid(UriColor.GREEN_COLOR);
 }
Example #13
0
 @Test
 public void arrayStringCsvEmpty() throws Exception {
   client.getQueries().arrayStringCsvEmpty(new ArrayList<String>());
 }
Example #14
0
 @Test
 public void floatNull() throws Exception {
   client.getQueries().floatNull(null);
 }
Example #15
0
 @Test
 public void arrayStringCsvNull() throws Exception {
   client.getQueries().arrayStringCsvNull(null);
 }
Example #16
0
 @Test
 public void byteMultiByte() throws Exception {
   client.getQueries().byteMultiByte("啊齄丂狛狜隣郎隣兀﨩".getBytes("UTF-8"));
 }
Example #17
0
 @Test
 public void dateTimeValid() throws Exception {
   client.getQueries().dateTimeValid(new DateTime(2012, 1, 1, 1, 1, 1, DateTimeZone.UTC));
 }
Example #18
0
 @Test
 public void dateValid() throws Exception {
   client.getQueries().dateValid(new LocalDate(2012, 1, 1));
 }
Example #19
0
 @Test
 public void byteEmpty() throws Exception {
   client.getQueries().byteEmpty("".getBytes("UTF-8"));
 }
Example #20
0
 @Test
 public void doubleDecimalNegative() throws Exception {
   client.getQueries().doubleDecimalNegative(-9999999.999);
 }
Example #21
0
 @Test
 public void getBooleanTrue() throws Exception {
   client.getQueries().getBooleanTrue(true);
 }
Example #22
0
 @Test
 public void stringUrlEncoded() throws Exception {
   client.getQueries().stringUrlEncoded("begin!*'();:@ &=+$,/?#[]end");
 }
Example #23
0
 @Test
 public void stringEmpty() throws Exception {
   client.getQueries().stringEmpty("");
 }