-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from ical4j/develop
Prepare release
- Loading branch information
Showing
9 changed files
with
96 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
systemProp.sonar.host.url=https://sonar.mnode.org | ||
|
||
sonatype_username= | ||
sonatype_password= | ||
|
||
bintray_user= | ||
bintray_key= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/java/net/fortuna/ical4j/connector/dav/DavClientFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package net.fortuna.ical4j.connector.dav; | ||
|
||
import java.net.URL; | ||
|
||
public class DavClientFactory { | ||
|
||
private final boolean preemptiveAuth; | ||
|
||
public DavClientFactory(boolean preemptiveAuth) { | ||
this.preemptiveAuth = preemptiveAuth; | ||
} | ||
|
||
public DavClient newInstance(URL url, String principalPath, String userPath) { | ||
return new DavClient(url, principalPath, userPath, preemptiveAuth); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/test/groovy/net/fortuna/ical4j/connector/dav/DavClientTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package net.fortuna.ical4j.connector.dav | ||
|
||
import spock.lang.Specification | ||
|
||
class DavClientTest extends Specification { | ||
|
||
def 'assert preemptive auth configuration'() { | ||
given: 'a dav client factory configured for preemptive auth' | ||
DavClientFactory clientFactory = [true] | ||
|
||
when: 'a new client instance is created' | ||
DavClient client = clientFactory.newInstance(URI.create('http://dav.example.com').toURL(), '', ''); | ||
|
||
and: 'a session is initated' | ||
client.begin() | ||
|
||
then: 'the client is configured for preemptive auth' | ||
client.httpClient.params.authenticationPreemptive == true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters