| 1 |
/* |
| 2 |
* junixsocket |
| 3 |
* |
| 4 |
* Copyright 2009-2022 Christian Kohlschütter |
| 5 |
* |
| 6 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 |
* you may not use this file except in compliance with the License. |
| 8 |
* You may obtain a copy of the License at |
| 9 |
* |
| 10 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 11 |
* |
| 12 |
* Unless required by applicable law or agreed to in writing, software |
| 13 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 14 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 |
* See the License for the specific language governing permissions and |
| 16 |
* limitations under the License. |
| 17 |
*/ |
| 18 |
package org.newsclub.net.unix.rmi; |
| 19 |
|
| 20 |
import java.util.Collections; |
| 21 |
import java.util.LinkedHashMap; |
| 22 |
import java.util.Map; |
| 23 |
import java.util.Set; |
| 24 |
|
| 25 |
/** |
| 26 |
* Provides references to all "junixsocket-rmi" tests that should be included in |
| 27 |
* junixsocket-selftest. |
| 28 |
* |
| 29 |
* @author Christian Kohlschütter |
| 30 |
*/ |
| 31 |
public class SelftestProvider { |
| 32 |
public Map<String, Class<?>[]> tests() { |
| 33 |
Map<String, Class<?>[]> tests = new LinkedHashMap<>(); |
| 34 |
tests.put("junixsocket-rmi", new Class<?>[] { // |
| 35 |
RegistryTest.class, // |
| 36 |
RemoteCloseableTest.class, // |
| 37 |
RemoteFileDescriptorTest.class, // |
| 38 |
RMIPeerCredentialsTest.class, // |
| 39 |
JunixsocketVersionTest.class, // |
| 40 |
}); |
| 41 |
|
| 42 |
return tests; |
| 43 |
} |
| 44 |
|
| 45 |
public Set<String> modulesDisabledByDefault() { |
| 46 |
return Collections.emptySet(); |
| 47 |
} |
| 48 |
} |