da1ba454e12c3bccbc8ad99bcd42613eadedd3d2
[controller.git] / opendaylight / md-sal / sal-akka-segmented-journal / src / test / java / org / opendaylight / controller / akka / segjournal / SegmentedFileJournalSpecTest.java
1 /*
2  * Copyright (c) 2019 Pantheon Technologies, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.akka.segjournal;
9
10 import akka.persistence.japi.journal.JavaJournalSpec;
11 import com.typesafe.config.ConfigFactory;
12 import java.io.File;
13 import org.apache.commons.io.FileUtils;
14 import org.junit.runner.RunWith;
15 import org.scalatest.junit.JUnitRunner;
16
17 @RunWith(JUnitRunner.class)
18 public class SegmentedFileJournalSpecTest extends JavaJournalSpec {
19     private static final long serialVersionUID = 1L;
20
21     private static final File JOURNAL_DIR = new File("target/segmented-journal");
22
23     public SegmentedFileJournalSpecTest() {
24         super(ConfigFactory.load("SegmentedFileJournalTest.conf"));
25     }
26
27     @Override
28     public void beforeAll() {
29         FileUtils.deleteQuietly(JOURNAL_DIR);
30         super.beforeAll();
31     }
32 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.