Class StringUtilsTest

java.lang.Object
test.de.oktoflow.platform.support.commons.apache.StringUtilsTest

public class StringUtilsTest extends Object
Tests StringUtils.
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static class 
    Just som data to be emitted.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Tests StringUtils.defaultIfBlank(CharSequence, CharSequence) and StringUtils.defaultIfEmpty(CharSequence, CharSequence).
    void
    Tests StringUtils.isBlank(CharSequence) and StringUtils.isEmpty(CharSequence).
    void
    Tests StringUtils.escapeJava(String) and StringUtils.unescapeJava(String).
    void
    Tests StringUtils.escapeJson(String) and StringUtils.unescapeJson(String).
    void
    Tests StringUtils.removeStart(String, String) and StringUtils.removeEnd(String, String).
    void
    Tests StringUtils.toString(Object) and StringUtils.toStringShortStyle(Object).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StringUtilsTest

      public StringUtilsTest()
  • Method Details

    • testJava

      public void testJava()
      Tests StringUtils.escapeJava(String) and StringUtils.unescapeJava(String).
    • testJson

      public void testJson()
      Tests StringUtils.escapeJson(String) and StringUtils.unescapeJson(String).
    • testDefaults

      public void testDefaults()
      Tests StringUtils.defaultIfBlank(CharSequence, CharSequence) and StringUtils.defaultIfEmpty(CharSequence, CharSequence).
    • testIsEmptyBlank

      public void testIsEmptyBlank()
      Tests StringUtils.isBlank(CharSequence) and StringUtils.isEmpty(CharSequence).
    • testToString

      public void testToString()
      Tests StringUtils.toString(Object) and StringUtils.toStringShortStyle(Object).
    • testRemove

      public void testRemove()
      Tests StringUtils.removeStart(String, String) and StringUtils.removeEnd(String, String).