Skip to content

Commit

Permalink
Revert "DefaultCredentialsProvider moved from package 'org.htmlunit' …
Browse files Browse the repository at this point in the history
…into 'org.htmlunit.httpclient' (issue #764)"

This reverts commit c08361f.
  • Loading branch information
rbri committed Apr 6, 2024
1 parent f7cab73 commit e65c193
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 14 deletions.
5 changes: 0 additions & 5 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@

<body>
<release version="4.1.0" date="April xx, 2024" description="Bugfixes">
<action type="update" dev="rbri">
INCOMPATIBLE CHANGE: DefaultCredentialsProvider moved from package 'org.htmlunit' into 'org.htmlunit.httpclient'.
</action>


<action type="fix" dev="rbri">
Wrong script encoding was uses in some cases (regression in 4.0.0).
</action>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.htmlunit.httpclient;
package org.htmlunit;

import java.io.IOException;
import java.io.ObjectInputStream;
Expand All @@ -28,6 +28,7 @@
import org.apache.http.auth.NTCredentials;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.CredentialsProvider;
import org.htmlunit.httpclient.HtmlUnitUsernamePasswordCredentials;

/**
* Default HtmlUnit implementation of the <code>CredentialsProvider</code> interface. Provides
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/htmlunit/WebClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
import org.htmlunit.html.XHtmlPage;
import org.htmlunit.html.parser.HTMLParser;
import org.htmlunit.html.parser.HTMLParserListener;
import org.htmlunit.httpclient.DefaultCredentialsProvider;
import org.htmlunit.httpclient.HttpClientConverter;
import org.htmlunit.javascript.AbstractJavaScriptEngine;
import org.htmlunit.javascript.DefaultJavaScriptErrorListener;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.htmlunit.httpclient;
package org.htmlunit;

import static org.junit.Assert.fail;

Expand All @@ -26,8 +26,6 @@
import org.apache.logging.log4j.core.appender.WriterAppender;
import org.apache.logging.log4j.core.config.Configurator;
import org.apache.logging.log4j.core.layout.PatternLayout;
import org.htmlunit.FailingHttpStatusCodeException;
import org.htmlunit.WebServerTestCase;
import org.htmlunit.html.HtmlPage;
import org.htmlunit.junit.BrowserRunner;
import org.htmlunit.junit.BrowserRunner.Alerts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.htmlunit.httpclient;
package org.htmlunit;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.htmlunit.httpclient;
package org.htmlunit;

import org.apache.http.auth.AuthScope;
import org.apache.http.auth.Credentials;
import org.apache.http.impl.auth.BasicScheme;
import org.htmlunit.HttpHeader;
import org.htmlunit.SimpleWebTestCase;
import org.htmlunit.html.HtmlPage;
import org.htmlunit.junit.BrowserRunner;
import org.junit.Test;
Expand Down
1 change: 1 addition & 0 deletions src/test/java/org/htmlunit/archunit/ArchitectureTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ public void check(final JavaMethod method, final ConditionEvents events) {
.and().doNotHaveFullyQualifiedName("org.htmlunit.WebClient")
.and().doNotHaveFullyQualifiedName("org.htmlunit.WebRequest")
.and().doNotHaveFullyQualifiedName("org.htmlunit.util.Cookie")
.and().doNotHaveFullyQualifiedName("org.htmlunit.DefaultCredentialsProvider")
.and().resideOutsideOfPackage("org.htmlunit.httpclient..")
.should().dependOnClassesThat().resideInAnyPackage("org.apache.http..");

Expand Down

0 comments on commit e65c193

Please sign in to comment.