blob: d980268228afbf39341082ec7f79b7e49300f76f [file] [log] [blame]
Naoki Shiota03c29e12016-05-16 16:58:07 -07001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2016-present Open Networking Foundation
Naoki Shiota03c29e12016-05-16 16:58:07 -07003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.newoptical.api;
18
19import org.junit.Test;
20import org.onosproject.event.AbstractEventTest;
21
22/**
23 * Test class for OpticalPathEvent class.
24 */
25public class OpticalPathEventTest extends AbstractEventTest {
26
27 @Override
28 @Test
29 public void withoutTime() {
30 OpticalConnectivityId cid = OpticalConnectivityId.of(1L);
31 long before = System.currentTimeMillis();
32 OpticalPathEvent event = new OpticalPathEvent(OpticalPathEvent.Type.PATH_INSTALLED, cid);
33 long after = System.currentTimeMillis();
34 validateEvent(event, OpticalPathEvent.Type.PATH_INSTALLED, cid, before, after);
35 }
36
37}