Commit d59ed1d 1 parent 11b5e68 commit d59ed1d Copy full SHA for d59ed1d
File tree 1 file changed +16
-2
lines changed
common/util/src/test/java/org/eclipse/dataspaceconnector/common/validator
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2022 ZF Friedrichshafen AG
3
+ *
4
+ * This program and the accompanying materials are made available under the
5
+ * terms of the Apache License, Version 2.0 which is available at
6
+ * https://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * SPDX-License-Identifier: Apache-2.0
9
+ *
10
+ * Contributors:
11
+ * ZF Friedrichshafen AG - Initial Implementation
12
+ *
13
+ */
14
+
1
15
package org .eclipse .dataspaceconnector .common .validator ;
2
16
3
17
import org .junit .jupiter .api .Test ;
@@ -11,13 +25,13 @@ public class UuidValidatorTest {
11
25
UuidValidator uuidValidator = new UuidValidator ();
12
26
13
27
@ Test
14
- void isValid_valid_UUID () {
28
+ void isValid_valid_uuid () {
15
29
String uuid = UUID .randomUUID ().toString ();
16
30
assertThat (uuidValidator .isValid (uuid , null )).isTrue ();
17
31
}
18
32
19
33
@ Test
20
- void isValid_invalid_UUID () {
34
+ void isValid_invalid_uuid () {
21
35
String uuid = "invalid-uuid-string" ;
22
36
assertThat (uuidValidator .isValid (uuid , null )).isFalse ();
23
37
}
You can’t perform that action at this time.
0 commit comments