Package com.eclipsesource.tabris.print

Examples of com.eclipsesource.tabris.print.PrintOptions


    assertTrue( Serializable.class.isAssignableFrom( PrintOptions.class ) );
  }

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

    printOptions.setPrinter( "printer" );

    assertEquals( "printer", printOptions.getPrinter() );
  }
View Full Code Here


    assertEquals( "printer", printOptions.getPrinter() );
  }

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

    PrintOptions actualOptions = printOptions.setPrinter( "printer" );

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

    assertSame( printOptions, actualOptions );
  }

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

    printOptions.setPrinter( "printer" );
    printOptions.setPrinter( null );

    assertNull( printOptions.getPrinter() );
  }
View Full Code Here

    assertNull( printOptions.getPrinter() );
  }

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

    String printer = printOptions.getPrinter();

    assertNull( printer );
  }
View Full Code Here

    assertNull( printer );
  }

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

    printOptions.setJobName( "Job Name" );

    assertEquals( "Job Name", printOptions.getJobName() );
  }
View Full Code Here

    assertEquals( "Job Name", printOptions.getJobName() );
  }

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

    PrintOptions actualOptions = printOptions.setJobName( "Job Name" );

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

    assertSame( printOptions, actualOptions );
  }

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

    printOptions.setJobName( "Job Name" );
    printOptions.setJobName( null );

    assertNull( printOptions.getJobName() );
  }
View Full Code Here

    assertNull( printOptions.getJobName() );
  }

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

    String jobName = printOptions.getJobName();

    assertNull( jobName );
  }
View Full Code Here

    assertNull( jobName );
  }

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

    PrintOptions actualOptions = printOptions.setDuplex( true );

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

    assertSame( printOptions, actualOptions );
  }

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

    printOptions.setDuplex( true );

    assertTrue( printOptions.isDuplex() );
  }
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.