Skip to content

Commit

Permalink
merge in master
Browse files Browse the repository at this point in the history
  • Loading branch information
robotdan committed Nov 20, 2024
2 parents 2a23108 + 7030013 commit 3779dbe
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001-2023, Inversoft Inc., All Rights Reserved
* Copyright (c) 2001-2024, Inversoft Inc., All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2023, Inversoft Inc., All Rights Reserved
* Copyright (c) 2012-2024, Inversoft Inc., All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2023, Inversoft Inc., All Rights Reserved
* Copyright (c) 2012-2024, Inversoft Inc., All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
11 changes: 11 additions & 0 deletions src/test/java/org/primeframework/mvc/GlobalTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertSame;
import static org.testng.Assert.assertTrue;
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.FileAssert.fail;

/**
Expand Down Expand Up @@ -1176,6 +1177,16 @@ public void get_unknownParameters() throws Exception {
));
}

@Test
public void get_url_rewrite() {
simulator.test("/doesNotExist?__a_foo=/user/edit&foo=true")
.get()
.assertStatusCode(404)
.assertContainsNoFieldMessages()
.assertBodyContains("The page is missing!");
assertFalse(EditAction.getCalled);
}

@Test
public void get_wellKnownDotPrefixed() throws Exception {
test.simulate(() -> simulator.test("/.well-known/openid-configuration")
Expand Down

0 comments on commit 3779dbe

Please sign in to comment.