Debian Codegraph @

terminal-jna/src/test/java/org/jline/terminal/impl/jna/JnaNativePtyTest.java

raw
1 /*
2 * Copyright (c) 2002-2016, the original author or authors.
3 *
4 * This software is distributable under the BSD license. See the terms of the
5 * BSD license in the documentation provided with this software.
6 *
7 * http://www.opensource.org/licenses/bsd-license.php
8 */
9 package org.jline.terminal.impl.jna;
10
11 import org.junit.Test;
12
13 import static org.junit.Assert.assertNotNull;
14 import static org.junit.Assume.assumeTrue;
15
16 public class JnaNativePtyTest {
17
18 @Test
19 public void testDescriptor() {
20 assumeTrue(!System.getProperty( "os.name" ).startsWith( "Windows"));
21 assertNotNull(JnaNativePty.newDescriptor(4));
22 }
23 }