1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 package ifc.java; 25 26 import lib.MultiMethodTest; 27 import lib.Status; 28 import lib.StatusException; 29 30 import com.sun.star.java.XJavaVM; 31 32 /** 33 * Testing <code>com.sun.star.java.XJavaVM</code> 34 * interface methods : 35 * <ul> 36 * <li><code> getJavaVM()</code></li> 37 * <li><code> isVMStarted()</code></li> 38 * <li><code> isVMEnabled()</code></li> 39 * </ul> <p> 40 * <b> Nothing tested here. </b> 41 * @see com.sun.star.java.XJavaVM 42 */ 43 public class _XJavaVM extends MultiMethodTest { 44 public XJavaVM oObj; 45 after()46 protected void after() { 47 log.println("Skipping all XJavaVM methods, since they" 48 + " can't be tested in the context"); 49 throw new StatusException(Status.skipped(true)); 50 } 51 _getJavaVM()52 public void _getJavaVM() { 53 // skipping the test 54 tRes.tested("getJavaVM()", true); 55 } 56 _isVMEnabled()57 public void _isVMEnabled() { 58 // skipping the test 59 tRes.tested("isVMEnabled()", true); 60 } 61 _isVMStarted()62 public void _isVMStarted() { 63 // skipping the test 64 tRes.tested("isVMStarted()", true); 65 } 66 } 67