@Test public void dateTimeNull() throws Exception { try { client.getQueries().dateTimeNull(null); } catch (ServiceException ex) { Assert.assertTrue(ex.getMessage().contains("Parameter dateTimePath is required")); } }
@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); }
@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); }
@Test public void floatScientificNegative() throws Exception { client.getQueries().floatScientificNegative(-1.034E-20); }
@Test public void getLongNull() throws Exception { client.getQueries().getLongNull(null); }
@Test public void floatScientificPositive() throws Exception { client.getQueries().floatScientificPositive(1.034E+20); }
@Test public void getTenBillion() throws Exception { client.getQueries().getTenBillion(10000000000l); }
@Test public void getNegativeTenBillion() throws Exception { client.getQueries().getNegativeTenBillion(-10000000000l); }
@Test public void getBooleanFalse() throws Exception { client.getQueries().getBooleanFalse(false); }
@Test public void getIntNegativeOneMillion() throws Exception { client.getQueries().getIntNegativeOneMillion(-1000000); }
@Test public void doubleNull() throws Exception { client.getQueries().doubleNull(null); }
@Test public void enumValid() throws Exception { client.getQueries().enumValid(UriColor.GREEN_COLOR); }
@Test public void arrayStringCsvEmpty() throws Exception { client.getQueries().arrayStringCsvEmpty(new ArrayList<String>()); }
@Test public void floatNull() throws Exception { client.getQueries().floatNull(null); }
@Test public void arrayStringCsvNull() throws Exception { client.getQueries().arrayStringCsvNull(null); }
@Test public void byteMultiByte() throws Exception { client.getQueries().byteMultiByte("啊齄丂狛狜隣郎隣兀﨩".getBytes("UTF-8")); }
@Test public void dateTimeValid() throws Exception { client.getQueries().dateTimeValid(new DateTime(2012, 1, 1, 1, 1, 1, DateTimeZone.UTC)); }
@Test public void dateValid() throws Exception { client.getQueries().dateValid(new LocalDate(2012, 1, 1)); }
@Test public void byteEmpty() throws Exception { client.getQueries().byteEmpty("".getBytes("UTF-8")); }
@Test public void doubleDecimalNegative() throws Exception { client.getQueries().doubleDecimalNegative(-9999999.999); }
@Test public void getBooleanTrue() throws Exception { client.getQueries().getBooleanTrue(true); }
@Test public void stringUrlEncoded() throws Exception { client.getQueries().stringUrlEncoded("begin!*'();:@ &=+$,/?#[]end"); }
@Test public void stringEmpty() throws Exception { client.getQueries().stringEmpty(""); }