Skip to content

Commit

Permalink
Fixes #78 - Implement AjaxRestoreViewPhase.execute (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem authored Dec 14, 2023
1 parent 44dc19c commit 4008604
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public class AjaxRestoreViewPhase implements AjaxPhase {

@Override
public void execute(FacesContext facesContext) {
throw new UnsupportedOperationException("Not supported yet.");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import jakarta.faces.event.PhaseListener;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;

/**
* The JUnit tests for the AjaxLifecycle class.
Expand Down Expand Up @@ -61,6 +60,6 @@ public PhaseId getPhaseId() {
@Test
public void testExecute() {
AjaxLifecycle lifecycle = new AjaxLifecycle();
assertThrows(UnsupportedOperationException.class, () -> {lifecycle.execute(null); });
lifecycle.execute(null);
}
}

0 comments on commit 4008604

Please sign in to comment.