Package org.springframework.boot.loader.util

Examples of org.springframework.boot.loader.util.AsciiBytes.substring()


    assertThat(abcd.substring(0, 4).toString(), equalTo("ABCD"));
    assertThat(abcd.substring(1, 3).toString(), equalTo("BC"));
    assertThat(abcd.substring(3, 4).toString(), equalTo("D"));
    assertThat(abcd.substring(3, 3).toString(), equalTo(""));
    this.thrown.expect(IndexOutOfBoundsException.class);
    abcd.substring(3, 5);
  }

  @Test
  public void appendString() throws Exception {
    AsciiBytes bc = new AsciiBytes(new byte[] { 65, 66, 67, 68 }, 1, 2);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.