当前位置: 首页>>代码示例>>Java>>正文


Java ActivationGroupDesc.CommandEnvironment方法代码示例

本文整理汇总了Java中java.rmi.activation.ActivationGroupDesc.CommandEnvironment方法的典型用法代码示例。如果您正苦于以下问题:Java ActivationGroupDesc.CommandEnvironment方法的具体用法?Java ActivationGroupDesc.CommandEnvironment怎么用?Java ActivationGroupDesc.CommandEnvironment使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在java.rmi.activation.ActivationGroupDesc的用法示例。


在下文中一共展示了ActivationGroupDesc.CommandEnvironment方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testGetClassName563

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetClassName563() {
      try{
Properties p= null;
ActivationGroupDesc agd= new ActivationGroupDesc("myClass" , null ,  new MarshalledObject(new Double(23.4))  ,  null ,  new ActivationGroupDesc.CommandEnvironment("Hola la", new String[] {"Hi", "Ha", "Hu"}));
String s = "myClass";
assertEquals(agd.getClassName(),s);
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:11,代码来源:TestActivationGroupDesc.java

示例2: testGetCommandEnvironment236

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetCommandEnvironment236() {
      try{
Properties p=new Properties();
p.setProperty("g43tmn","grew");
ActivationGroupDesc agd= new ActivationGroupDesc(null ,  "myLocation" ,  new MarshalledObject(null)  ,  new Properties(p) ,  new ActivationGroupDesc.CommandEnvironment(null, new String[] {"Hi", "Ha", "Hu"}));
assertEquals(agd.getCommandEnvironment(), new ActivationGroupDesc.CommandEnvironment(null, new String[] {"Hi", "Ha", "Hu"}));
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:11,代码来源:TestActivationGroupDesc.java

示例3: testGetCommandEnvironment042

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetCommandEnvironment042() {
      try{
Properties p= new Properties(null);
ActivationGroupDesc agd= new ActivationGroupDesc(null , null ,  new MarshalledObject(new Double(23.4))  ,  new Properties(null) ,  new ActivationGroupDesc.CommandEnvironment("Hola la", new String[0]));
assertEquals(agd.getCommandEnvironment(), new ActivationGroupDesc.CommandEnvironment("Hola la", new String[0]));
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:10,代码来源:TestActivationGroupDesc.java

示例4: testGetLocation747

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetLocation747() {
      try{
Properties p= null;
ActivationGroupDesc agd= new ActivationGroupDesc("myClass" ,  "myLocation" ,  new MarshalledObject(new Double(23.4))  ,  null ,  new ActivationGroupDesc.CommandEnvironment("",  new String[0]));
String s =  "myLocation";
assertEquals(agd.getLocation(),s);
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:11,代码来源:TestActivationGroupDesc.java

示例5: testGetData631

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetData631() {
      try{
Properties p= new Properties();
ActivationGroupDesc agd= new ActivationGroupDesc("myClass" ,  "" ,  new MarshalledObject(new Double(23.4))  ,  new Properties() ,  new ActivationGroupDesc.CommandEnvironment(null, null));
MarshalledObject mo =  new MarshalledObject(new Double(23.4)) ;
assertEquals(agd.getData(),mo);
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:11,代码来源:TestActivationGroupDesc.java

示例6: testGetData750

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetData750() {
      try{
Properties p=new Properties();
p.setProperty("","");
ActivationGroupDesc agd= new ActivationGroupDesc("myClass" ,  "myLocation" ,  new MarshalledObject(new Double(23.4))  ,  p ,  new ActivationGroupDesc.CommandEnvironment(null,  new String[0]));
MarshalledObject mo =  new MarshalledObject(new Double(23.4)) ;
assertEquals(agd.getData(),mo);
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:12,代码来源:TestActivationGroupDesc.java

示例7: testGetPropertyOverrides491

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetPropertyOverrides491() {
      try{
Properties p= new Properties(null);
ActivationGroupDesc agd= new ActivationGroupDesc("" ,  "myLocation" ,  new MarshalledObject(new Double(23.4))  ,  new Properties(null) ,  new ActivationGroupDesc.CommandEnvironment("Hola la", new String[] {"Hi", "Ha", "Hu"}));
assertEquals(agd.getPropertyOverrides(),p);
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:10,代码来源:TestActivationGroupDesc.java

示例8: testGetLocation794

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetLocation794() {
      try{
Properties p=new Properties();
p.setProperty("","");
ActivationGroupDesc agd= new ActivationGroupDesc("myClass" ,  "myLocation" ,  new MarshalledObject(null)  , p ,  new ActivationGroupDesc.CommandEnvironment(null, new String[] {"Hi", "Ha", "Hu"}));
String s =  "myLocation";
assertEquals(agd.getLocation(),s);
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:12,代码来源:TestActivationGroupDesc.java

示例9: testGetPropertyOverrides066

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetPropertyOverrides066() {
      try{
Properties p= null;
ActivationGroupDesc agd= new ActivationGroupDesc(null , null ,  new MarshalledObject(null)  ,  null ,  new ActivationGroupDesc.CommandEnvironment(null,  new String[0]));
assertEquals(agd.getPropertyOverrides(),p);
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:10,代码来源:TestActivationGroupDesc.java

示例10: testGetCommandEnvironment803

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetCommandEnvironment803() {
      try{
Properties p= new Properties(null);
ActivationGroupDesc agd= new ActivationGroupDesc("myClass" ,  "myLocation" ,  new MarshalledObject(null)  ,  new Properties(null) ,  new ActivationGroupDesc.CommandEnvironment(null, new String[] {"Hi", "Ha", "Hu"}));
assertEquals(agd.getCommandEnvironment(), new ActivationGroupDesc.CommandEnvironment(null, new String[] {"Hi", "Ha", "Hu"}));
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:10,代码来源:TestActivationGroupDesc.java

示例11: testEquals007

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testEquals007() {
        try {   
Properties p=new Properties();
p.setProperty("g43tmn","grew");
 ActivationGroupDesc at= new ActivationGroupDesc(p ,  new ActivationGroupDesc.CommandEnvironment("Hola la", new String[] {"Hi", "Ha", "Hu"}));           
            for(int i=1;i<10;i++){
            	assertTrue("must be equals", at.equals(at));
            }
        } catch (Throwable e) {
            fail("Failed with:" + e);
        }
    }
 
开发者ID:freeVM,项目名称:freeVM,代码行数:13,代码来源:TestActivationGroupDesc.java

示例12: testGetCommandEnvironment589

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetCommandEnvironment589() {
      try{
Properties p= new Properties();
ActivationGroupDesc agd= new ActivationGroupDesc("myClass" , null ,  new MarshalledObject(null)  ,  new Properties() ,  new ActivationGroupDesc.CommandEnvironment("Hola la", null));
assertEquals(agd.getCommandEnvironment(), new ActivationGroupDesc.CommandEnvironment("Hola la", null));
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:10,代码来源:TestActivationGroupDesc.java

示例13: testGetData841

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetData841() {
      try{
Properties p=new Properties();
p.setProperty("","");
ActivationGroupDesc agd= new ActivationGroupDesc( p ,  new ActivationGroupDesc.CommandEnvironment("Hola la", null));
MarshalledObject mo =null;
assertEquals(agd.getData(),mo);
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:12,代码来源:TestActivationGroupDesc.java

示例14: testGetClassName722

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetClassName722() {
      try{
Properties p= new Properties();
ActivationGroupDesc agd= new ActivationGroupDesc("myClass" ,  "myLocation" ,  new MarshalledObject(new Double(23.4))  ,  new Properties() ,  new ActivationGroupDesc.CommandEnvironment(null, new String[] {"Hi", "Ha", "Hu"}));
String s = "myClass";
assertEquals(agd.getClassName(),s);
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:11,代码来源:TestActivationGroupDesc.java

示例15: testGetLocation134

import java.rmi.activation.ActivationGroupDesc; //导入方法依赖的package包/类
public void testGetLocation134() {
      try{
Properties p= new Properties(null);
ActivationGroupDesc agd= new ActivationGroupDesc(null ,  "" ,  new MarshalledObject(new Double(23.4))  ,  new Properties(null) ,  new ActivationGroupDesc.CommandEnvironment("", new String[] {"Hi", "Ha", "Hu"}));
String s =  "";
assertEquals(agd.getLocation(),s);
} catch (Throwable e) {
    fail(msgNoException+e);
}
}
 
开发者ID:freeVM,项目名称:freeVM,代码行数:11,代码来源:TestActivationGroupDesc.java


注:本文中的java.rmi.activation.ActivationGroupDesc.CommandEnvironment方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。