Ejemplo n.º 1
0
  @Override
  protected void validateImport(
      StagedModel stagedModel, Map<String, List<StagedModel>> dependentStagedModelsMap, Group group)
      throws Exception {

    super.validateImport(stagedModel, dependentStagedModelsMap, group);

    MBBan ban = (MBBan) stagedModel;
    MBBan importBan = (MBBan) getStagedModel(stagedModel.getUuid(), group);

    Assert.assertEquals(ban.getBanUserUuid(), importBan.getBanUserUuid());
  }
  @Override
  public void setUp() throws Exception {
    super.setUp();

    layout = LayoutTestUtil.addLayout(stagingGroup.getGroupId(), ServiceTestUtil.randomString());

    ServiceContext serviceContext = new ServiceContext();

    serviceContext.setUuid(layout.getUuid());

    LayoutLocalServiceUtil.addLayout(
        TestPropsValues.getUserId(),
        liveGroup.getGroupId(),
        layout.getPrivateLayout(),
        layout.getParentLayoutId(),
        layout.getName(),
        layout.getTitle(),
        layout.getDescription(),
        layout.getType(),
        layout.getHidden(),
        layout.getFriendlyURL(),
        serviceContext);
  }