Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ClassDefValidator sets the PropDef.ClassDef to null for all Classes #36

Open
jeff2001 opened this issue Nov 14, 2013 · 0 comments
Open
Labels

Comments

@jeff2001
Copy link
Contributor

Redmine Bug #1807
When the ClassDefValidator is called it sets the ClassDef property to null on all PropDefs.
This is as a result of being added to a Propdefcol that has no ClassDef.
The bug can be replicated through the following test:

[Test]        
        public void Test_ValidateClassDefs()
{
            //---------------Set up test pack-------------------
            ClassDef.ClassDefs.Add(StargateAppServerClassDefBroker.GetClassDefs());
            //---------------Assert Precondition----------------
            Assert.Greater(ClassDef.ClassDefs.Count, 0);
            Assert.IsNotNull(ClassDef.Get<MyBO>().GetPropDef("TextProp").ClassDef);
            //---------------Execute Test ----------------------
            var validator = new ClassDefValidator(new DefClassFactory());
            validator.ValidateClassDefs(ClassDef.ClassDefs);
            Assert.IsNotNull(ClassDef.Get<MyBO>().GetPropDef("TextProp").ClassDef);
        }

This is related to issue #1806 on redmine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant