rt/aot-nb-test/src/test/java/org/apidesign/bck2brwsr/aot/nb/test/LookupGetTest.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 23 Nov 2014 21:59:21 +0100
changeset 1728 1d850aa501bb
child 1731 212379f827b6
permissions -rw-r--r--
Recognizes NetBeans manifest tags
jaroslav@1728
     1
/**
jaroslav@1728
     2
 * Back 2 Browser Bytecode Translator
jaroslav@1728
     3
 * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@1728
     4
 *
jaroslav@1728
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@1728
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@1728
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@1728
     8
 *
jaroslav@1728
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@1728
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@1728
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@1728
    12
 * GNU General Public License for more details.
jaroslav@1728
    13
 *
jaroslav@1728
    14
 * You should have received a copy of the GNU General Public License
jaroslav@1728
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@1728
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@1728
    17
 */
jaroslav@1728
    18
package org.apidesign.bck2brwsr.aot.nb.test;
jaroslav@1728
    19
jaroslav@1728
    20
import org.apidesign.bck2brwsr.vmtest.Compare;
jaroslav@1728
    21
import org.apidesign.bck2brwsr.vmtest.VMTest;
jaroslav@1728
    22
import org.openide.util.Lookup;
jaroslav@1728
    23
import org.testng.annotations.Factory;
jaroslav@1728
    24
jaroslav@1728
    25
/**
jaroslav@1728
    26
 *
jaroslav@1728
    27
 * @author Jaroslav Tulach
jaroslav@1728
    28
 */
jaroslav@1728
    29
public class LookupGetTest {
jaroslav@1728
    30
    
jaroslav@1728
    31
    @Compare public boolean getDefault() {
jaroslav@1728
    32
        return Lookup.getDefault() != null;
jaroslav@1728
    33
    }
jaroslav@1728
    34
jaroslav@1728
    35
    @Factory public static Object[] create() {
jaroslav@1728
    36
        return VMTest.create(LookupGetTest.class);
jaroslav@1728
    37
    }
jaroslav@1728
    38
}