blob: 87b16dbff1fc86e3f93c32ab72437f5728425a73 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.security.tls;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.stream.Collectors;
import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author bjorncs
*/
class CapabilitySetTest {
@Test
void contains_all_capabilities() {
SortedSet<String> expectedNames = Arrays.stream(Capability.values())
.map(Capability::asString)
.collect(Collectors.toCollection(TreeSet::new));
SortedSet<String> actualNames = CapabilitySet.all().toNames();
assertEquals(expectedNames, actualNames);
}
}
|