@Test public void testResolveSequenceHeaderWhenThereIsOneKeyInInput() { String testKey = "TestKey1"; String[] result = underTest.resolveSequenceHeader(testKey); Assert.assertEquals(result.length, 1); Assert.assertEquals(result[0], testKey); }
public String[] resolveSequenceHeader(final String headerSource) { String[] result = new String[0]; if (headerSource != null) { result = headerSource.split(SequenceConstants.SEQUENCE_KEY_SEPARATOR.getConstant()); } return result; }
SequenceHeaderUtil { public String[] resolveSequenceHeader(final String headerSource) { String[] result = new String[0]; if (headerSource != null) { result = headerSource.split(SequenceConstants.SEQUENCE_KEY_SEPARATOR.getConstant()); } return result; } }
SequenceHeaderUtil { public String[] resolveSequenceHeader(final String headerSource) { String[] result = new String[0]; if (headerSource != null) { result = headerSource.split(SequenceConstants.SEQUENCE_KEY_SEPARATOR.getConstant()); } return result; }  }
SequenceHeaderUtil { public String[] resolveSequenceHeader(final String headerSource) { String[] result = new String[0]; if (headerSource != null) { result = headerSource.split(SequenceConstants.SEQUENCE_KEY_SEPARATOR.getConstant()); } return result; }  String createSequenceHeader(final String headerSource, final String sequenceId); String[] resolveSequenceHeader(final String headerSource); }
SequenceHeaderUtil { public String[] resolveSequenceHeader(final String headerSource) { String[] result = new String[0]; if (headerSource != null) { result = headerSource.split(SequenceConstants.SEQUENCE_KEY_SEPARATOR.getConstant()); } return result; }  String createSequenceHeader(final String headerSource, final String sequenceId); String[] resolveSequenceHeader(final String headerSource);  }