Package fr.imag.adele.apam.app1.s3.spec

Examples of fr.imag.adele.apam.app1.s3.spec.S3


 
  /** */
  @Test public void  testObjectStruct() {
    try
    {
      S3 a  = null;
      testServer.p_object_struct( a );
      testClient.p_object_struct( a );
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here


    assertSame( e, a );
  }
 
  private void testS3Export(String s, Object value)
  {
    StructValue sv = vf.exportCustomValue( new S3( s,value ) );
    sv.checkType( ValueFactoryTest1._mt_etch_tests_Test1_S3 );
    assertEquals( 2, sv.size() );
    assertEquals( s, sv.get( ValueFactoryTest1._mf_tipe ) );
    assertEquals( value, sv.get( ValueFactoryTest1._mf_x ) );
  }
View Full Code Here

  private void testS3Import(String s, Object value)
  {
    StructValue sv = new StructValue( ValueFactoryTest1._mt_etch_tests_Test1_S3, vf );
    sv.put( ValueFactoryTest1._mf_tipe, s );
    sv.put( ValueFactoryTest1._mf_x, value );
    S3 myS3 = (S3) vf.importCustomValue( sv );
    assertEquals( s, myS3.tipe );
    assertEquals( value, myS3.x );
 
View Full Code Here

    } catch (IOException e) {

      fail(e.getMessage());
    }

    App1Spec app1Spec = apam.createInstance(app1CompoType, App1Spec.class);

    System.out
        .println("\n==================Start call test=================== \n");

    app1Spec.call("Call Main APP1 from Test");

    System.out
        .println("\n=================End call test====================\n");
  }
View Full Code Here

        .toArray()[0];

    assertEquals(2, root.getEmbedded().size()); // the root compositeType
    // contains two composites

    App1Spec app1Spec = obrmanhelper.createInstance(app1CompoType,
        App1Spec.class);

    System.out
        .println("\n==================Start call test=================== \n");

    app1Spec.call("Call Main APP1 from Test");

    System.out
        .println("\n=================End call test====================\n");

    assertEquals(1, app1CompoType.getEmbedded().size()); // app1 contains
View Full Code Here

    assertSame( e, a );
  }
 
  private void testS3Export(String s, Object value)
  {
    StructValue sv = vf.exportCustomValue( new S3( s,value ) );
    sv.checkType( ValueFactoryTest1._mt_org_apache_etch_tests_Test1_S3 );
    assertEquals( 2, sv.size() );
    assertEquals( s, sv.get( ValueFactoryTest1._mf_tipe ) );
    assertEquals( value, sv.get( ValueFactoryTest1._mf_x ) );
  }
View Full Code Here

  private void testS3Import(String s, Object value)
  {
    StructValue sv = new StructValue( ValueFactoryTest1._mt_org_apache_etch_tests_Test1_S3, vf );
    sv.put( ValueFactoryTest1._mf_tipe, s );
    sv.put( ValueFactoryTest1._mf_x, value );
    S3 myS3 = (S3) vf.importCustomValue( sv );
    assertEquals( s, myS3.tipe );
    assertEquals( value, myS3.x );
 
View Full Code Here

 
  /** */
  @Test public void  testObjectStruct() {
    try
    {
      S3 a  = null;
      testServer.p_object_struct( a );
      testClient.p_object_struct( a );
    }
    catch ( UnsupportedOperationException e )
    {
View Full Code Here

    updateUI();
  }

  @Override
  public void stagesChanged(StagesChangeEvent e) {
    StageChangeAction action = e.getAction();
    switch (action) {
    case Remove:
      rocket.removeStage(e.getStage());
      break;
    case MoveUp:
View Full Code Here

    rocket.addStage();
    refreshStagesPanel();
  }

  private void addStagePanel(Stage stage) {
    StagePanel stagePanel = new StagePanel(stage);
    stagePanel.addStageRemoveListener(this);
    stagesPanel.add(stagePanel, 0);
    updateUI();
  }
View Full Code Here

TOP

Related Classes of fr.imag.adele.apam.app1.s3.spec.S3

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.