コード例 #1
0
  @Test
  public void testGetAndReplacereplaceHolder() {
    String[] strArray = new String[] {UtilitiesConstantsTest.REGEX, UtilitiesConstantsTest.REG};
    String[] array = YamlUtil.getAndReplaceHolders(strArray);

    assertTrue(array != null);
  }
コード例 #2
0
 @Test
 public void testSerializeObjectToYaml() {
   String str = YamlUtil.serializeObjectToYaml(obj);
   assertTrue(str != null);
 }
コード例 #3
0
 @Test
 public void testValidateFileSystemLocation() {
   assertTrue(YamlUtil.validateFileSystemLocation(UtilitiesConstantsTest.VALID_FILE_LOCATION));
 }
コード例 #4
0
 @Test
 public void testValidateIPAddress() {
   assertTrue(YamlUtil.validateIPAddress(UtilitiesConstantsTest.VALIDIPADDRRESS));
 }
コード例 #5
0
 @Test
 public void testGetPlaceHoldersNull() {
   String[] array = YamlUtil.getPlaceHolders(UtilitiesConstantsTest.STRING);
   boolean check = array == null;
   assertTrue(check);
 }
コード例 #6
0
 @Test
 public void testGetPlaceHolderNull() throws IOException {
   int[] value = YamlUtil.getPlaceHolder(UtilitiesConstantsTest.STRING, 0);
   assertEquals(value, null);
 }
コード例 #7
0
 @Test
 public void testGetPlaceHolder() throws IOException {
   int[] value = YamlUtil.getPlaceHolder(UtilitiesConstantsTest.STR, 0);
   boolean check = value != null;
   assertTrue(check);
 }