Skip to content

Commit ad70ceb

Browse files
author
Gabriela Achim
committed
Updated host, port and version to the current ones.
1 parent 5fbcfef commit ad70ceb

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

src/main/java/org/nameapi/client/lib/NameApiPortUrlFactory.java

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,23 @@ public class NameApiPortUrlFactory extends AbstractRestPortUrlFactory {
1515
/**
1616
* This is updated whenever the "latest stable" server api version changes.
1717
*
18-
* Currently this is version 5.0.
18+
* Currently this is version 5.3.
1919
*/
2020
public static NameApiPortUrlFactory versionLatestStable() {
21-
return version5_0();
21+
return version5_3();
2222
}
2323

2424
/**
2525
* This is always set to the latest release candidate, that is the version right before it becomes the latest stable.
2626
* Such a version does not always exist. After successful testing, it becomes the live version.
2727
*
28-
* Currently this is version 5.3.
28+
* Currently there is no release candidate available, so it returns the stable version.
2929
*/
3030
public static NameApiPortUrlFactory versionLatestReleaseCandidate() {
3131
return version5_3();
3232
}
3333

34-
/**
35-
* This is always set to the current main development version.
36-
* You do not necessarily have access to this.
37-
*
38-
* Currently this is version 5.3.
39-
*/
40-
public static NameApiPortUrlFactory versionLatestDevelopment() {
41-
return version5_3();
42-
}
4334

44-
public static NameApiPortUrlFactory version5_0() {
45-
return new NameApiPortUrlFactory("5.0");
46-
}
4735
public static NameApiPortUrlFactory version5_3() {
4836
return new NameApiPortUrlFactory("5.3");
4937
}

src/test/functional/java/org/nameapi/client/services/FunctionalTestsNameApiModeFactory.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.nameapi.client.services;
22

33
import com.optimaize.anythingworks.common.host.Host;
4+
import com.optimaize.anythingworks.common.host.Protocol;
45
import com.optimaize.command4j.Mode;
56
import com.optimaize.command4j.ext.extensions.logging.stdoutlogging.StdoutLoggingExtension;
67
import org.jetbrains.annotations.NotNull;
@@ -21,9 +22,7 @@ public class FunctionalTestsNameApiModeFactory extends NameApiModeFactory {
2122

2223
private static final Mode unitTestMode = withContext(API_KEY, makeContext(),
2324
//the default and live server is "api.nameapi.org"
24-
//we're using the latest release candidate with latest features here:
25-
new Host("rc50-api.nameapi.org", 80), NameApiPortUrlFactory.versionLatestStable())
26-
25+
new Host("api.nameapi.org", Protocol.HTTPS), NameApiPortUrlFactory.version5_3())
2726
//.with(TimeoutExtension.TIMEOUT, Duration.millis(5000))
2827
.with(StdoutLoggingExtension.enabled())
2928
;
@@ -34,7 +33,7 @@ private static Context makeContext() {
3433
}
3534
return new ContextBuilder()
3635
.priority(Priority.REALTIME)
37-
.build();
36+
.build();
3837
}
3938

4039
@NotNull

0 commit comments

Comments
 (0)