Package org.assertj.core.presentation

Examples of org.assertj.core.presentation.StandardRepresentation


    assertEquals("[true, false, true]", formatter.format(new StandardRepresentation(), new boolean[]{true, false, true}));
  }

  @Test
  public void should_format_char_array() {
    assertEquals("['a', 'b', 'c']", formatter.format(new StandardRepresentation(), new char[] { 'a', 'b', 'c' }));
  }
View Full Code Here


    assertEquals("['a', 'b', 'c']", formatter.format(new StandardRepresentation(), new char[] { 'a', 'b', 'c' }));
  }

  @Test
  public void should_format_byte_array() {
    assertEquals("[6, 8]", formatter.format(new StandardRepresentation(), new byte[] { 6, 8 }));
  }
View Full Code Here

    assertEquals("[0x06, 0x08]", formatter.format(new HexadecimalRepresentation(), new byte[] { 6, 8 }));
  }

  @Test
  public void should_format_short_array() {
    assertEquals("[6, 8]", formatter.format(new StandardRepresentation(), new short[] { 6, 8 }));
  }
View Full Code Here

    assertEquals("[6, 8]", formatter.format(new StandardRepresentation(), new short[] { 6, 8 }));
  }

  @Test
  public void should_format_int_array() {
    assertEquals("[6, 8]", formatter.format(new StandardRepresentation(), new int[] { 6, 8 }));
  }
View Full Code Here

    assertEquals("[6, 8]", formatter.format(new StandardRepresentation(), new int[] { 6, 8 }));
  }

  @Test
  public void should_format_longArray() {
    assertEquals("[6L, 8L]", formatter.format(new StandardRepresentation(), new long[] { 6l, 8l }));
  }
View Full Code Here

    assertEquals("[6L, 8L]", formatter.format(new StandardRepresentation(), new long[] { 6l, 8l }));
  }

  @Test
  public void should_format_float_array() {
    assertEquals("[6.0f, 8.0f]", formatter.format(new StandardRepresentation(), new float[] { 6f, 8f }));
  }
View Full Code Here

    assertEquals("[6.0f, 8.0f]", formatter.format(new StandardRepresentation(), new float[] { 6f, 8f }));
  }

  @Test
  public void should_format_double_array() {
    assertEquals("[6.0, 8.0]", formatter.format(new StandardRepresentation(), new double[] { 6d, 8d }));
  }
View Full Code Here

    assertEquals("[6.0, 8.0]", formatter.format(new StandardRepresentation(), new double[] { 6d, 8d }));
  }

  @Test
  public void should_format_String_array() {
    assertEquals("[\"Hello\", \"World\"]", formatter.format(new StandardRepresentation(), new Object[] { "Hello", "World" }));
  }
View Full Code Here

    assertEquals("[\"Hello\", \"World\"]", formatter.format(new StandardRepresentation(), new Object[] { "Hello", "World" }));
  }

  @Test
  public void should_format_array_with_null_element() {
    assertEquals("[\"Hello\", null]", formatter.format(new StandardRepresentation(), new Object[] { "Hello", null }));
  }
View Full Code Here

    assertEquals("[\"Hello\", null]", formatter.format(new StandardRepresentation(), new Object[] { "Hello", null }));
  }

  @Test
  public void should_format_Object_array() {
    assertEquals("[\"Hello\", 'Anakin']", formatter.format(new StandardRepresentation(), new Object[] { "Hello", new Person("Anakin") }));
  }
View Full Code Here

TOP

Related Classes of org.assertj.core.presentation.StandardRepresentation

Copyright © 2018 www.massapicom. 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.