Esempio n. 1
0
        public virtual void TestGetNewAppId()
        {
            Logger rootLogger = LogManager.GetRootLogger();

            rootLogger.SetLevel(Level.Debug);
            MockRM rm = new MockRM(conf);

            rm.Start();
            GetNewApplicationResponse resp = rm.GetNewAppId();

            System.Diagnostics.Debug.Assert((resp.GetApplicationId().GetId() != 0));
            System.Diagnostics.Debug.Assert((resp.GetMaximumResourceCapability().GetMemory()
                                             > 0));
            rm.Stop();
        }