BUG-4688: eliminate SimpleDateFormatUtil.DEFAULT_DATE_REV
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / parser / stmt / rfc7950 / Bug6901Test.java
index 80bd9d640947f6e990608957dd3410a40cc4653c..33ad7dbd0e032eba99017b91c8ece78965cc9457 100644 (file)
@@ -32,8 +32,7 @@ public class Bug6901Test {
             fail("Test should fail due to invalid Yang 1.1");
         } catch (final SomeModifiersUnresolvedException e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "Leaf '(foo?revision=1970-01-01)enum-leaf' has default value 'two' marked with an if-feature "
-                            + "statement."));
+                    "Leaf '(foo)enum-leaf' has default value 'two' marked with an if-feature statement."));
         }
     }
 
@@ -44,8 +43,7 @@ public class Bug6901Test {
             fail("Test should fail due to invalid Yang 1.1");
         } catch (final SomeModifiersUnresolvedException e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "Leaf '(foo?revision=1970-01-01)enum-leaf' has default value 'two' marked with an if-feature "
-                            + "statement."));
+                    "Leaf '(foo)enum-leaf' has default value 'two' marked with an if-feature statement."));
         }
     }
 
@@ -56,8 +54,7 @@ public class Bug6901Test {
             fail("Test should fail due to invalid Yang 1.1");
         } catch (final SomeModifiersUnresolvedException e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "Leaf '(foo?revision=1970-01-01)enum-leaf' has default value 'two' marked with an if-feature "
-                            + "statement."));
+                    "Leaf '(foo)enum-leaf' has default value 'two' marked with an if-feature statement."));
         }
     }
 
@@ -68,8 +65,7 @@ public class Bug6901Test {
             fail("Test should fail due to invalid Yang 1.1");
         } catch (final SomeModifiersUnresolvedException e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "Typedef '(foo?revision=1970-01-01)bits-typedef-2' has default value 'two' marked with an "
-                            + "if-feature statement."));
+                    "Typedef '(foo)bits-typedef-2' has default value 'two' marked with an if-feature statement."));
         }
     }
 
@@ -80,8 +76,7 @@ public class Bug6901Test {
             fail("Test should fail due to invalid Yang 1.1");
         } catch (final SomeModifiersUnresolvedException e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "Leaf '(foo?revision=1970-01-01)union-leaf' has default value 'two' marked with an if-feature "
-                            + "statement."));
+                    "Leaf '(foo)union-leaf' has default value 'two' marked with an if-feature statement."));
         }
     }