aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.ssh.apache.test/tst/org/eclipse/jgit/internal/signing/ssh/OpenSshBinaryKrlLoadTest.java
blob: 9f9c3ca3035dba07e05751b1bb9430428dbc9c1d (plain)
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
28
29
30
31
32
/*
 * Copyright (C) 2024, Thomas Wolf <twolf@apache.org> and others
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0 which is available at
 * https://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */
package org.eclipse.jgit.internal.signing.ssh;

import static org.junit.Assert.assertNotNull;

import java.io.BufferedInputStream;
import java.io.InputStream;

import org.junit.Test;

/**
 * Tests loading an {@link OpenSshBinaryKrl}.
 */
public class OpenSshBinaryKrlLoadTest {

	@Test
	public void testLoad() throws Exception {
		try (InputStream in = new BufferedInputStream(
				this.getClass().getResourceAsStream("krl/krl"))) {
			OpenSshBinaryKrl krl = OpenSshBinaryKrl.load(in, false);
			assertNotNull(krl);
		}
	}
}