Ejemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: protected void tearDown() throws Exception
        protected internal virtual void tearDown()
        {
            // make sure all MBeans are removed after each test
            MBeanServer mBeanServer = serviceContainer.getmBeanServer();

            if (mBeanServer.isRegistered(service1ObjectName))
            {
                mBeanServer.unregisterMBean(service1ObjectName);
            }
            if (mBeanServer.isRegistered(service2ObjectName))
            {
                mBeanServer.unregisterMBean(service2ObjectName);
            }
            if (mBeanServer.isRegistered(service3ObjectName))
            {
                mBeanServer.unregisterMBean(service3ObjectName);
            }
            if (mBeanServer.isRegistered(service4ObjectName))
            {
                mBeanServer.unregisterMBean(service4ObjectName);
            }
            base.tearDown();
        }