Package com.eclipsesource.tabris.print

Examples of com.eclipsesource.tabris.print.PrintOptions


    assertTrue( printOptions.isDuplex() );
  }

  @Test
  public void testDefaultDuplexIsFalse() {
    PrintOptions printOptions = new PrintOptions();

    boolean duplex = printOptions.isDuplex();

    assertFalse( duplex );
  }
View Full Code Here


    assertFalse( duplex );
  }

  @Test
  public void testSetShowNumberOfCopiesReturnsOptions() {
    PrintOptions printOptions = new PrintOptions();

    PrintOptions actualOptions = printOptions.setShowNumberOfCopies( false );

    assertSame( printOptions, actualOptions );
  }
View Full Code Here

    assertSame( printOptions, actualOptions );
  }

  @Test
  public void testSetsShowNumberOfCopiesToFalse() {
    PrintOptions printOptions = new PrintOptions();

    printOptions.setShowNumberOfCopies( false );

    assertFalse( printOptions.showNumberOfCopies() );
  }
View Full Code Here

    assertFalse( printOptions.showNumberOfCopies() );
  }

  @Test
  public void testDefaultShowNumberOfCopiesIsTrue() {
    PrintOptions printOptions = new PrintOptions();

    boolean showNumberOfCopies = printOptions.showNumberOfCopies();

    assertTrue( showNumberOfCopies );
  }
View Full Code Here

    assertTrue( showNumberOfCopies );
  }

  @Test
  public void testSetShowPageRangeReturnsOptions() {
    PrintOptions printOptions = new PrintOptions();

    PrintOptions actualOptions = printOptions.setShowPageRange( false );

    assertSame( printOptions, actualOptions );
  }
View Full Code Here

    assertSame( printOptions, actualOptions );
  }

  @Test
  public void testSetsShowPageRangeToFalse() {
    PrintOptions printOptions = new PrintOptions();

    printOptions.setShowPageRange( false );

    assertFalse( printOptions.showPageRange() );
  }
View Full Code Here

    assertFalse( printOptions.showPageRange() );
  }

  @Test
  public void testDefaultShowPageRangeIsTrue() {
    PrintOptions printOptions = new PrintOptions();

    boolean showPageRange = printOptions.showPageRange();

    assertTrue( showPageRange );
  }
View Full Code Here

    assertTrue( showPageRange );
  }

  @Test
  public void testSetQualityReturnsOptions() {
    PrintOptions printOptions = new PrintOptions();

    PrintOptions actualOptions = printOptions.setQuality( PrintOptions.Quality.LOW );

    assertSame( printOptions, actualOptions );
  }
View Full Code Here

    assertSame( printOptions, actualOptions );
  }

  @Test
  public void testSetsQualityToLow() {
    PrintOptions printOptions = new PrintOptions();

    printOptions.setQuality( PrintOptions.Quality.LOW );

    assertEquals( PrintOptions.Quality.LOW, printOptions.getQuality() );
  }
View Full Code Here

    assertEquals( PrintOptions.Quality.LOW, printOptions.getQuality() );
  }

  @Test
  public void testSetsQualityToNormal() {
    PrintOptions printOptions = new PrintOptions();

    printOptions.setQuality( PrintOptions.Quality.NORMAL );

    assertEquals( PrintOptions.Quality.NORMAL, printOptions.getQuality() );
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.print.PrintOptions

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.