blob: a0ec6c55bd522712c5d21c9b8ba38473b0cf00ad [file] [log] [blame]
Naoki Shiota03c29e12016-05-16 16:58:07 -07001/*
Brian O'Connor0a4e6742016-09-15 23:03:10 -07002 * Copyright 2016-present Open Networking Laboratory
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}