@Test public void shouldConvertNullByteArrayToEmptyString() { byte[] bytes = null; String stringFromBytes = StringUtil.fromBytes(bytes, engineRule.getProcessEngine()); assertThat(stringFromBytes).isEmpty(); }
public static String fromBytes(byte[] bytes) { EnsureUtil.ensureActiveCommandContext("StringUtil.fromBytes"); ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); return fromBytes(bytes, processEngineConfiguration.getProcessEngine()); }
StringUtil { public static String fromBytes(byte[] bytes) { EnsureUtil.ensureActiveCommandContext("StringUtil.fromBytes"); ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); return fromBytes(bytes, processEngineConfiguration.getProcessEngine()); } }
StringUtil { public static String fromBytes(byte[] bytes) { EnsureUtil.ensureActiveCommandContext("StringUtil.fromBytes"); ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); return fromBytes(bytes, processEngineConfiguration.getProcessEngine()); }  }
StringUtil { public static String fromBytes(byte[] bytes) { EnsureUtil.ensureActiveCommandContext("StringUtil.fromBytes"); ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); return fromBytes(bytes, processEngineConfiguration.getProcessEngine()); }  static boolean isExpression(String text); static boolean isCompositeExpression(String text, ExpressionManager expressionManager); static String[] split(String text, String regex); static boolean hasAnySuffix(String text, String[] suffixes); static String fromBytes(byte[] bytes); static String fromBytes(byte[] bytes, ProcessEngine processEngine); static Reader readerFromBytes(byte[] bytes); static Writer writerForStream(OutputStream outStream); static byte[] toByteArray(String string); static byte[] toByteArray(String string, ProcessEngine processEngine); static String trimToMaximumLengthAllowed(String string); static String joinDbEntityIds(Collection<? extends DbEntity> dbEntities); static String joinProcessElementInstanceIds(Collection<? extends ProcessElementInstance> processElementInstances); static String join(Iterator<String> iterator); }
StringUtil { public static String fromBytes(byte[] bytes) { EnsureUtil.ensureActiveCommandContext("StringUtil.fromBytes"); ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); return fromBytes(bytes, processEngineConfiguration.getProcessEngine()); }  static boolean isExpression(String text); static boolean isCompositeExpression(String text, ExpressionManager expressionManager); static String[] split(String text, String regex); static boolean hasAnySuffix(String text, String[] suffixes); static String fromBytes(byte[] bytes); static String fromBytes(byte[] bytes, ProcessEngine processEngine); static Reader readerFromBytes(byte[] bytes); static Writer writerForStream(OutputStream outStream); static byte[] toByteArray(String string); static byte[] toByteArray(String string, ProcessEngine processEngine); static String trimToMaximumLengthAllowed(String string); static String joinDbEntityIds(Collection<? extends DbEntity> dbEntities); static String joinProcessElementInstanceIds(Collection<? extends ProcessElementInstance> processElementInstances); static String join(Iterator<String> iterator); static int DB_MAX_STRING_LENGTH; }