@Test public void isAlias_bothCases() { assertTrue(OpmUtils.isAlias("${hallo}")); assertTrue(OpmUtils.isAlias("${hal{}lo}")); assertTrue(OpmUtils.isAlias("${hallo:hallo}")); assertFalse(OpmUtils.isAlias("hallo")); assertFalse(OpmUtils.isAlias("${hallo")); assertFalse(OpmUtils.isAlias("${ha}llo")); }
static boolean isAlias(String s) { Validate.notNull(s); return s.startsWith("$") && pattern.matcher(s).matches(); }
OpmUtils { static boolean isAlias(String s) { Validate.notNull(s); return s.startsWith("$") && pattern.matcher(s).matches(); } }
OpmUtils { static boolean isAlias(String s) { Validate.notNull(s); return s.startsWith("$") && pattern.matcher(s).matches(); } private  OpmUtils(); }
OpmUtils { static boolean isAlias(String s) { Validate.notNull(s); return s.startsWith("$") && pattern.matcher(s).matches(); } private  OpmUtils();  }
OpmUtils { static boolean isAlias(String s) { Validate.notNull(s); return s.startsWith("$") && pattern.matcher(s).matches(); } private  OpmUtils();   }