/*
 * Copyright 2019 ConsenSys AG.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations under the License.
 */
package tech.pegasys.pantheon.tests.acceptance.dsl.privacy;

import tech.pegasys.pantheon.tests.acceptance.dsl.AcceptanceTestBase;
import tech.pegasys.pantheon.tests.acceptance.dsl.condition.eea.EeaConditions;
import tech.pegasys.pantheon.tests.acceptance.dsl.node.configuration.privacy.PrivacyPantheonNodeFactory;
import tech.pegasys.pantheon.tests.acceptance.dsl.transaction.eea.EeaTransactions;
import tech.pegasys.pantheon.tests.acceptance.dsl.transaction.eea.PrivateTransactionBuilder;

import org.junit.ClassRule;
import org.junit.rules.TemporaryFolder;

public class PrivacyAcceptanceTestBase extends AcceptanceTestBase {
  @ClassRule public static final TemporaryFolder privacy = new TemporaryFolder();

  protected final EeaConditions eea;
  protected final PrivateTransactions privateTransactions;
  protected final PrivateTransactionBuilder.Builder privateTransactionBuilder;
  protected final PrivateTransactionVerifier privateTransactionVerifier;
  protected final PrivacyPantheonNodeFactory privacyPantheon;

  public PrivacyAcceptanceTestBase() {
    final EeaTransactions eeaTransactions = new EeaTransactions();

    privateTransactions = new PrivateTransactions();
    eea = new EeaConditions(eeaTransactions);
    privateTransactionBuilder = PrivateTransactionBuilder.builder();
    privateTransactionVerifier = new PrivateTransactionVerifier(eea, eeaTransactions);
    privacyPantheon = new PrivacyPantheonNodeFactory();
  }
}
