Search in sources :

Example 1 with X509KeyType

use of org.apache.zookeeper.common.X509KeyType in project zookeeper by apache.

the class UnifiedServerSocketTest method data.

public static Stream<Arguments> data() {
    ArrayList<Arguments> result = new ArrayList<>();
    int paramIndex = 0;
    for (X509KeyType caKeyType : X509KeyType.values()) {
        for (X509KeyType certKeyType : X509KeyType.values()) {
            for (Boolean hostnameVerification : new Boolean[] { true, false }) {
                result.add(Arguments.of(caKeyType, certKeyType, hostnameVerification, paramIndex++));
            }
        }
    }
    return result.stream();
}
Also used : X509KeyType(org.apache.zookeeper.common.X509KeyType) Arguments(org.junit.jupiter.params.provider.Arguments) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 X509KeyType (org.apache.zookeeper.common.X509KeyType)1 Arguments (org.junit.jupiter.params.provider.Arguments)1