Community
Participate
Working Groups
We need a bunch of test cases to verify the support of different types of Maps.
More testcases is always a good thing. Thanks, Martin. As a sidenote: feature-map support could also deal with some more testcases ;)
Created attachment 161170 [details] test patch V1 Hi guys, I added some new features to the Model2 and wrote some test cases for it. Well concentrating on every key/value pair for any possible combination of maps would result int 64 new map, only for the primitive types. So I just concentrated on the must common combinations (in my opinion). But I wrote the test cases as generic as possible, so we can later add other maps easily. The good news is: All maps tests are working fine with CDO. Map supports seems to be quite well implemented ? @Stefan: featuremap test are already on the agenda ;) I am currently planning a model which even contains bidirectional features map. @Eike 800 ;)
Is it possible to create dynamic models for more combinations on the fly?
Hmm, could be. But than I must also care for a dynamich Legacy version. I'll try it out.
(In reply to comment #4) > Hmm, could be. But than I must also care for a dynamich Legacy version. I'll > try it out. Not sure I understand. Dynamic modls are always native through DynamicCDFOObjectImpl.
Now I am confused. ;) If I just create an EFactory and EPackage without using CDOUtil.prepareDynamicEPackage() than it will only create DynamicEObject instead of DynamicCDOObjects. Or I am wrong here? If not I meant that that we need both versions (legacy/native) of package and factory. I'll ping you later this day...
Created attachment 161575 [details] Test Patch v2 - ready to be committed
Committed to HEAD. Dynamic tests for additional test coverage coming soon.
Created attachment 161988 [details] Test Patch v3 Hi, I played a bit with the dynamic stuff and managed to get a quite good test coverage for maps. We now have about 480 additional tests for maps running in one dynamical test ;) (see MapTest,java) I also managed to create dynamic JUnit tests, so every single dynamic test case is shown in the JUnit UI (see DynamicMapTest.java). Unfortunately I was not able to integrate this test into our nice test framework. This means the test has to be started manually from the ?Run As? context menu. Note, that the dynamic version only tests maps with EAttributes for key and value. I will see that I can write additional test for EReferences as key/value combination. I also need to change the current dynamic implementation to work with legacy because by now every dynamically create object is native. Finally I had to tweak the framework a bit to generate dynamic maps in CDO, which was not supported. The good news in the end: Seems that maps are well supported in CDO ?
Created attachment 162088 [details] Patvh v4 - ready to be committed
Committed ot HEAD. Last thing to do is to integrate the DynamicMapTest into our test framework.
Rebasing all outstanding enhancements requests to version 4.0
Moving all open enhancement requests to 4.1
Moving all open issues to 4.2. Open bugs can be ported to 4.1 maintenance after they've been fixed in master.
Moving all outstanding enhancements to 4.3
Moving all open enhancement requests to 4.4
Moving all open bugzillas to 4.5.
Moving all unaddressed bugzillas to 4.6.
Moving all open bugs to 4.7
Moving all unresolved issues to version 4.8-
Moving all unresolved issues to version 4.9
Moving to 4.13.