File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
repository/src/test/java/org/lfenergy/compas/scl/data/model Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ // SPDX-FileCopyrightText: 2021 Alliander N.V.
2
+ //
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ package org .lfenergy .compas .scl .data .model ;
5
+
6
+ import org .junit .jupiter .api .Test ;
7
+
8
+ import java .util .UUID ;
9
+
10
+ import static org .junit .jupiter .api .Assertions .assertEquals ;
11
+
12
+ class AbstractItemTest extends AbstractPojoTester {
13
+ @ Override
14
+ protected Class <?> getClassToBeTested () {
15
+ return AbstractItem .class ;
16
+ }
17
+
18
+ @ Test
19
+ void constructor_WhenCalledWithParameters_ThenValuesAreFilled () {
20
+ var id = UUID .randomUUID ().toString ();
21
+ var name = "Name" ;
22
+ var version = "1.0.0" ;
23
+
24
+ var item = new AbstractItem (id , name , version ) {
25
+ };
26
+
27
+ assertEquals (id , item .getId ());
28
+ assertEquals (name , item .getName ());
29
+ assertEquals (version , item .getVersion ());
30
+ }
31
+ }
You can’t perform that action at this time.
0 commit comments