Skip to content

Commit

Permalink
Servlet api issue 175 add cookie set attribute v3 (#401)
Browse files Browse the repository at this point in the history
* Add Cookie#setAttribute
#175
#271

* Skip null value from check for reserved token

* Alternative approach to cookie attribute handling
github.com//pull/399#discussion_r624276777

* Make sure path is referenced via constant

* In hindsight, token check doesn't need to be performed on value

* Match casing with spec; mapping is case insensitive anyway

* Optimized Cookie to lazily create attribute map

* Added junit test

* Updates from review

* Fixed quote

* surefire plugin

* Updates from review

* Updates from review

Co-authored-by: Bauke Scholtz <balusc@gmail.com>
  • Loading branch information
gregw and BalusC committed May 17, 2021
1 parent 623216c commit c04d563
Show file tree
Hide file tree
Showing 6 changed files with 484 additions and 60 deletions.
30 changes: 29 additions & 1 deletion api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,27 @@
<url>https://github.com/eclipse-ee4j/servlet-api/issues</url>
</issueManagement>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.7.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<version>5.7.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.2</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<resources>
<resource>
Expand Down Expand Up @@ -148,7 +169,14 @@
<compilerArgument>-Xlint:all</compilerArgument>
</configuration>
</plugin>


<!-- Execute unit tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
</plugin>

<!-- Checks copyright / license headers -->
<plugin>
<groupId>org.glassfish.copyright</groupId>
Expand Down

0 comments on commit c04d563

Please sign in to comment.