Adjust test suite parser update to conform with API changes
[yangtools.git] / yang / yang-parser-impl / src / test / resources / declared-statements-test / choice-declared-test.yang
1 module choice-declared-test {
2     namespace "choice-declared-test";
3     prefix "chdt";
4
5     choice test-choice {
6         default case-two;
7         config false;
8         mandatory false;
9         when "bar = 'baz'";
10         if-feature foo-feature;
11         status current;
12         description "choice description";
13         reference "choice reference";
14
15         case case-one {
16             when "foo = 'bar'";
17             if-feature foobar-feature;
18             status current;
19             description "case description";
20             reference "case reference";
21
22             leaf case-one-leaf {
23                 type string;
24             }
25         }
26
27         case case-two {
28             leaf case-two-leaf {
29                 type string;
30             }
31         }
32
33         case case-three {
34             leaf case-three-leaf {
35                 type string;
36             }
37         }
38     }
39 }