Exemplo n.º 1
0
 /**
  * creates a mock server directory structure and tests if the server bean loader can handle that
  * folder structure
  *
  * @throws Exception
  */
 @Test
 public void testFuseESB() throws Exception {
   IPath dest = FuseServerTestActivator.getDefault().getStateLocation().append(this.fRuntimeType);
   FuseESBMockRuntimeCreationUtil.create6xRuntimeMock(this.fRuntimeType, dest);
   ServerBeanLoader l = new ServerBeanLoader(dest.toFile());
   ServerBean b = l.getServerBean();
   assertTrue(b.getBeanType() == FuseBeanProvider.FUSE_6x);
   assertEquals(b.getFullVersion(), TYPE_TO_VERSION.get(this.fRuntimeType));
   assertEquals(
       b.getVersion(),
       ServerBeanLoader.getMajorMinorVersion(TYPE_TO_VERSION.get(this.fRuntimeType)));
 }