protected void beforeRequest() {
setParameter("documentId", "6");
}
protected void renderResponse() throws Exception {
DocumentEditorPreferences docEditorPrefs = Preferences.instance().get(DocumentEditorPreferences.class);
assert !docEditorPrefs.getMinorRevisionEnabled();
}
}.run();
// Logout and check system setting, should still be true
logout();
new NonFacesRequest("/docDisplay_d.xhtml") {
protected void beforeRequest() {
setParameter("documentId", "6");
}
protected void renderResponse() throws Exception {
DocumentEditorPreferences docEditorPrefs = Preferences.instance().get(DocumentEditorPreferences.class);
assert docEditorPrefs.getMinorRevisionEnabled();
}
}.run();
}