本文整理汇总了Java中com.google.gwt.junit.GWTMockUtilities类的典型用法代码示例。如果您正苦于以下问题:Java GWTMockUtilities类的具体用法?Java GWTMockUtilities怎么用?Java GWTMockUtilities使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GWTMockUtilities类属于com.google.gwt.junit包,在下文中一共展示了GWTMockUtilities类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: prepareTestEnviroment
import com.google.gwt.junit.GWTMockUtilities; //导入依赖的package包/类
@BeforeClass
public static void prepareTestEnviroment() {
/**
* disable GWT.create() behavior for pure JUnit testing
*/
GWTMockUtilities.disarm();
}
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:8,代码来源:AbstractModuleStructureTestBase.java
示例2: restoreEnviroment
import com.google.gwt.junit.GWTMockUtilities; //导入依赖的package包/类
@AfterClass
public static void restoreEnviroment() {
/**
* restore GWT.create() behavior
*/
GWTMockUtilities.restore();
}
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:8,代码来源:AbstractModuleStructureTestBase.java
示例3: init
import com.google.gwt.junit.GWTMockUtilities; //导入依赖的package包/类
@Before
public void init() {
action1CallbackCallTimes = 0;
GWTMockUtilities.disarm();
pep = new PushedEventProvider(DispatchMock.getIneDispatchMock(), null);
pep.eventQueryTimer = mock(Timer.class);
// NOTE: Adding the first action calls the queryEvent() function
pep.addAction(new Action1(), new Action1Context());
}
开发者ID:inepex,项目名称:ineform,代码行数:11,代码来源:PushedEventProviderTest.java
示例4: IneFrameClientSideTestBase
import com.google.gwt.junit.GWTMockUtilities; //导入依赖的package包/类
public IneFrameClientSideTestBase() {
GWTMockUtilities.disarm();
serverI18n = new I18nStore_Server();
currentLangProvider = new MockCurrentLangProvider();
descStore = new ClientDescriptorStore(new TreeDescriptorStoreMapCreator());
setupLocalization();
registerAssists(descStore);
}
开发者ID:inepex,项目名称:ineform,代码行数:12,代码来源:IneFrameClientSideTestBase.java
示例5: setUpClass
import com.google.gwt.junit.GWTMockUtilities; //导入依赖的package包/类
@BeforeClass
public static void setUpClass() throws Exception {
GWTMockUtilities.disarm();
final Console console = new TestConsole();
Whitebox.setInternalState(VConsole.class, "impl", console);
final SchedulerImpl scheduler = new TestSchedulerImpl();
Whitebox.setInternalState(SchedulerImpl.class, "INSTANCE", scheduler);
}
开发者ID:qoswork,项目名称:opennmszh,代码行数:10,代码来源:SearchStateTest.java
示例6: disableWidgets
import com.google.gwt.junit.GWTMockUtilities; //导入依赖的package包/类
@Before
public void disableWidgets() {
GWTMockUtilities.disarm();
matchedResponse = new GetLocationForStringResponse();
matchedResponse.setLocationFound(true);
alternativesResponse = new GetLocationForStringResponse();
List<GetLocationForStringAlternative> list = new ArrayList<GetLocationForStringAlternative>();
list.add(new GetLocationForStringAlternative());
list.add(new GetLocationForStringAlternative());
alternativesResponse.setAlternatives(list);
}
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:14,代码来源:GeocoderPresenterEventTest.java
示例7: setupPreferences
import com.google.gwt.junit.GWTMockUtilities; //导入依赖的package包/类
@BeforeClass
public static void setupPreferences() {
final Map<String, String> preferences = new HashMap<String, String>() {{
put(ApplicationPreferences.DATE_FORMAT,
"dd/mm/yyyy");
}};
ApplicationPreferences.setUp(preferences);
// Prevent runtime GWT.create() error at 'content = new SimplePanel()'
GWTMockUtilities.disarm();
validationResult = new HashMap<>();
validationResult.put("metaData", true);
validationResult.put("*", false);
}
开发者ID:kiegroup,项目名称:drools-wb,代码行数:16,代码来源:MetaDataColumnPageTest.java
示例8: setupPreferences
import com.google.gwt.junit.GWTMockUtilities; //导入依赖的package包/类
@BeforeClass
public static void setupPreferences() {
final Map<String, String> preferences = new HashMap<String, String>() {{
put(ApplicationPreferences.DATE_FORMAT,
"dd/mm/yyyy");
}};
ApplicationPreferences.setUp(preferences);
// Prevent runtime GWT.create() error at 'content = new SimplePanel()'
GWTMockUtilities.disarm();
}
开发者ID:kiegroup,项目名称:drools-wb,代码行数:12,代码来源:AdditionalInfoPageTest.java
示例9: setupPreferences
import com.google.gwt.junit.GWTMockUtilities; //导入依赖的package包/类
@BeforeClass
public static void setupPreferences() {
final Map<String, String> preferences = new HashMap<String, String>() {{
put(ApplicationPreferences.DATE_FORMAT,
"dd/mm/yyyy");
}};
ApplicationPreferences.setUp(preferences);
// Prevent runtime GWT.create() error at 'content = new SimplePanel()'
GWTMockUtilities.disarm();
}
开发者ID:kiegroup,项目名称:drools-wb,代码行数:13,代码来源:AttributeColumnPageTest.java
示例10: disarm
import com.google.gwt.junit.GWTMockUtilities; //导入依赖的package包/类
@BeforeClass
public static void disarm() {
GWTMockUtilities.disarm();
}
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:5,代码来源:SimulationPreloaderJUnitTest.java
示例11: rearm
import com.google.gwt.junit.GWTMockUtilities; //导入依赖的package包/类
@AfterClass
public static void rearm() {
GWTMockUtilities.restore();
}
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:5,代码来源:SimulationPreloaderJUnitTest.java
示例12: restore
import com.google.gwt.junit.GWTMockUtilities; //导入依赖的package包/类
@AfterClass
public static void restore() {
GWTMockUtilities.restore();
}
开发者ID:YoungDigitalPlanet,项目名称:empiria.player,代码行数:5,代码来源:SimpleChoicePresenterImplTest.java
注:本文中的com.google.gwt.junit.GWTMockUtilities类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论