Changeset 4774


Ignore:
Timestamp:
Apr 13, 2013, 7:20:00 PM (12 years ago)
Author:
Christian Schulte
Message:

o Added tests 'MCT0129' and 'MCT0130' incorrectly passing validation.

See #41

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified jomc/trunk/jomc-model/src/test/resources/org/jomc/model/modlet/test/DefaultModelValidatorTestSuite.xml

    r4698 r4774  
    25902590    <modules valid="false">
    25912591      <modules xmlns="http://jomc.org/model">
    2592         <module name="Module">
     2592        <module name="Module 1">
    25932593          <implementations>
    25942594            <implementation identifier="Parent 1" name="Parent Name 1">
     
    25972597              </implementations>
    25982598            </implementation>
     2599          </implementations>
     2600        </module>
     2601        <module name="Module 2">
     2602          <implementations>
    25992603            <implementation identifier="Parent 2" name="Parent Name 2">
    26002604              <implementations>
     
    26022606              </implementations>
    26032607            </implementation>
     2608          </implementations>
     2609        </module>
     2610        <module name="Module 3">
     2611          <implementations>
    26042612            <implementation identifier="Cycle" name="Cycle Name">
    26052613              <implementations>
     
    54505458  </modules-constraints-test>
    54515459
     5460  <!-- ********************************************************************* -->
     5461  <modules-constraints-test identifier="MCT0129">
     5462    <modules valid="false">
     5463      <modules xmlns="http://jomc.org/model">
     5464        <module name="Module">
     5465          <implementations>
     5466            <implementation identifier="Parent" name="Parent Name"/>
     5467            <implementation identifier="Implementation" name="Implementation Name">
     5468              <implementations>
     5469                <reference identifier="Parent"/>
     5470                <reference identifier="Implementation"/>
     5471              </implementations>
     5472            </implementation>
     5473          </implementations>
     5474        </module>
     5475      </modules>
     5476    </modules>
     5477    <detail identifier="IMPLEMENTATION_INHERITANCE_CYCLE_CONSTRAINT" count="1"/>
     5478  </modules-constraints-test>
     5479
     5480  <!-- ********************************************************************* -->
     5481  <modules-constraints-test identifier="MCT0130">
     5482    <modules valid="false">
     5483      <modules xmlns="http://jomc.org/model">
     5484        <module name="Module">
     5485          <implementations>
     5486            <implementation identifier="Root" name="Root Name"/>
     5487          </implementations>
     5488        </module>
     5489        <module name="Module 1">
     5490          <implementations>
     5491            <implementation identifier="Parent 1" name="Parent Name 1">
     5492              <implementations>
     5493                <reference identifier="Root"/>
     5494                <reference identifier="Cycle"/>
     5495              </implementations>
     5496            </implementation>
     5497          </implementations>
     5498        </module>
     5499        <module name="Module 2">
     5500          <implementations>
     5501            <implementation identifier="Parent 2" name="Parent Name 2">
     5502              <implementations>
     5503                <reference identifier="Root"/>
     5504                <reference identifier="Parent 1"/>
     5505              </implementations>
     5506            </implementation>
     5507          </implementations>
     5508        </module>
     5509        <module name="Module 3">
     5510          <implementations>
     5511            <implementation identifier="Cycle" name="Cycle Name">
     5512              <implementations>
     5513                <reference identifier="Root"/>
     5514                <reference identifier="Parent 1"/>
     5515              </implementations>
     5516            </implementation>
     5517          </implementations>
     5518        </module>
     5519      </modules>
     5520    </modules>
     5521    <detail identifier="IMPLEMENTATION_INHERITANCE_CYCLE_CONSTRAINT" count="3"/>
     5522  </modules-constraints-test>
     5523
    54525524</testsuite>
Note: See TracChangeset for help on using the changeset viewer.