@Test void isGlobal() { Throwable exception = assertThrows(RuntimeException.class, () -> CurrentUserReference.INSTANCE.isGlobal()); assertEquals("You need to resolve the current user first to find if it's a global user or not.", exception.getMessage()); }
@Override public boolean isGlobal() { throw new RuntimeException("You need to resolve the current user first to find if it's a global user or not."); }
CurrentUserReference implements UserReference { @Override public boolean isGlobal() { throw new RuntimeException("You need to resolve the current user first to find if it's a global user or not."); } }
CurrentUserReference implements UserReference { @Override public boolean isGlobal() { throw new RuntimeException("You need to resolve the current user first to find if it's a global user or not."); } private  CurrentUserReference(); }
CurrentUserReference implements UserReference { @Override public boolean isGlobal() { throw new RuntimeException("You need to resolve the current user first to find if it's a global user or not."); } private  CurrentUserReference(); @Override boolean isGlobal(); }
CurrentUserReference implements UserReference { @Override public boolean isGlobal() { throw new RuntimeException("You need to resolve the current user first to find if it's a global user or not."); } private  CurrentUserReference(); @Override boolean isGlobal(); static final CurrentUserReference INSTANCE; }