1   /*
2    * ConstraintsRegistryTest.java
3    *
4    * Created on 1 Июль 2006 г., 14:31
5    */
6   
7   package org.weda.property;
8   
9   import org.weda.test.WedaTestCase;
10  
11  /**
12   *
13   * @author Mikhail Titov
14   */
15  public class ConstraintsRegistryTest extends WedaTestCase {
16      
17      public ConstraintsRegistryTest(String name) throws Exception{
18          super(name);
19      }
20      
21      public void test() throws Exception {
22          ConstraintsRegistry consReg = 
23                  (ConstraintsRegistry)
24                      registry.getService(ConstraintsRegistry.class);
25          assertNotNull(consReg);
26          Constraint cons = consReg.getConstraint("test-values-set");
27          assertNotNull(cons);
28          ConstraintsFactoryTest test = new ConstraintsFactoryTest("fact-test");
29          test.checkTestValuesSetConstraint(cons);
30      }
31      
32  }