1 19 20 package org.netbeans.modules.apisupport.jnlplauncher; 21 22 import junit.framework.*; 23 import java.awt.*; 24 import java.awt.event.*; 25 import java.beans.*; 26 import java.io.*; 27 import java.security.*; 28 import java.util.Locale ; 29 import javax.swing.*; 30 import javax.swing.border.*; 31 32 36 public class ReplaceUserDirTest extends TestCase { 37 38 public ReplaceUserDirTest(String testName) { 39 super(testName); 40 } 41 42 public void testGetUserDir() { 43 System.setProperty("netbeans.user", "${user.home}/mine"); 44 45 String expResult = System.getProperty("user.home") + File.separator + "mine"; 46 Main.fixNetBeansUser(); 47 String result = System.getProperty("netbeans.user"); 48 assertEquals(expResult, result); 49 } 50 51 } 52 | Popular Tags |