Epic-231:versioning, and backup the configuration
[sdnc/oam.git] / configbackuprestore / vnfconfigbackupservice / src / test / java / com / onap / sdnc / vnfbackupservice / model / VnfConfigSchedulerTimeStampTest.java
1 /*
2 * ============LICENSE_START=======================================================
3 * ONAP : SDNC-FEATURES
4 * ================================================================================
5 * Copyright 2018 TechMahindra
6 *=================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 *     http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
19 */
20 package com.onap.sdnc.vnfbackupservice.model;
21
22 import static org.junit.Assert.assertEquals;
23
24 import org.junit.Test;
25
26 public class VnfConfigSchedulerTimeStampTest {
27
28         @Test
29         public void vnfConfSchedulerTimeTest() {
30                 String time="12:00";
31                 int id=1;
32                 
33                 VnfConfigSchedulerTimeStamp vcst= new VnfConfigSchedulerTimeStamp();
34                 vcst.setBackuptime(time);
35                 vcst.setId(id);
36                 assertEquals(time, vcst.getBackuptime());
37                 assertEquals(id, vcst.getId());
38         }
39 }