Renderer and OLM update
[transportpce.git] / renderer / src / test / java / org / opendaylight / transportpce / renderer / TestRollbackTask.java
1 /*
2  * Copyright © 2017 AT&T 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.transportpce.renderer;
9
10 import org.opendaylight.transportpce.renderer.provisiondevice.tasks.RollbackTask;
11
12 public class TestRollbackTask extends RollbackTask {
13
14     private boolean rollbackNecessary;
15
16     public TestRollbackTask(String id, boolean rollbackNecessary) {
17         super(id);
18         this.rollbackNecessary = rollbackNecessary;
19     }
20
21     @Override
22     public boolean isRollbackNecessary() {
23         return rollbackNecessary;
24     }
25
26     @Override
27     public Void call() throws Exception {
28         return null;
29     }
30 }