本文整理汇总了Java中org.apache.olingo.odata2.core.rest.ODataExceptionMapperImpl类的典型用法代码示例。如果您正苦于以下问题:Java ODataExceptionMapperImpl类的具体用法?Java ODataExceptionMapperImpl怎么用?Java ODataExceptionMapperImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ODataExceptionMapperImpl类属于org.apache.olingo.odata2.core.rest包,在下文中一共展示了ODataExceptionMapperImpl类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testSuccessfullyCreated
import org.apache.olingo.odata2.core.rest.ODataExceptionMapperImpl; //导入依赖的package包/类
@Test
public void testSuccessfullyCreated() {
assertTrue(appCtx.containsBean("testServer"));
assertTrue(appCtx.containsBean(OlingoServerDefinitionParser.OLINGO_ODATA_EXCEPTION_HANDLER));
assertTrue(appCtx.containsBean(OlingoServerDefinitionParser.OLINGO_ODATA_PROVIDER));
assertEquals(ODataExceptionMapperImpl.class, appCtx.getType("OlingoODataExceptionHandler"));
assertEquals(ODataApplication.MyProvider.class, appCtx.getType("OlingoODataProvider"));
String rootLocatorName = "OlingoRootLocator-testServer-serviceFactory";
assertTrue(appCtx.containsBean(rootLocatorName));
assertEquals(OlingoRootLocator.class, appCtx.getType(rootLocatorName));
SpringJAXRSServerFactoryBean server = appCtx.getBean("testServer", SpringJAXRSServerFactoryBean.class);
assertEquals("/service.svc", server.getAddress());
}
示例2: getClasses
import org.apache.olingo.odata2.core.rest.ODataExceptionMapperImpl; //导入依赖的package包/类
public Set<Class<?>> getClasses() {
Set<Class<?>> set = new HashSet<>();
set.add(ODataRootLocator.class);
set.add(ODataExceptionMapperImpl.class);
return set;
}
示例3: getClasses
import org.apache.olingo.odata2.core.rest.ODataExceptionMapperImpl; //导入依赖的package包/类
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> classes = new HashSet<Class<?>>();
classes.add(ODataRootLocator.class);
classes.add(ODataExceptionMapperImpl.class);
classes.add(MyProvider.class);
return classes;
}