Ejemplo n.º 1
0
  /** This method will test the update dao's service. */
  @Override
  public void updateRecord() {

    GPX2RecordDataModel record = null;
    this.getMyModel().setGroupMnemonic("Str");
    dao.updateRecord();
    record = getRecord();
    assertEquals(this.getMyModel().getGroupMnemonic(), record.getGroupMnemonic());
  }
Ejemplo n.º 2
0
  @Override
  protected void assertDataModel(AbsRecord dataModel) {

    GPX2RecordDataModel record = (GPX2RecordDataModel) dataModel;

    assertEquals(getMyModel().getGroupMnemonic(), record.getGroupMnemonic());
    assertEquals(getMyModel().getUnitMnemonic(), record.getUnitMnemonic());
    assertEquals(getMyModel().getUnitSequence(), record.getUnitSequence());
    assertEquals(getMyModel().getSystemName(), record.getSystemName());
    assertEquals(getMyModel().getUnitType(), record.getUnitType());
    assertEquals(getMyModel().getBranchNumber(), record.getBranchNumber());
    assertEquals(getMyModel().getBranchMnemonic(), record.getBranchMnemonic());
  }
Ejemplo n.º 3
0
  @Override
  protected void setDataModel() {
    GPX2RecordDataModel record = new GPX2RecordDataModel("Stri");
    record.setGroupMnemonic("Str");
    record.setUnitMnemonic("Str");
    record.setUnitSequence(1);
    record.setSystemName("String_TES");
    record.setUnitType("String_TES");
    record.setBranchMnemonic("Stri");

    record.setLibrary(kFilLibName);
    this.dataModel = record;
    ;
  }