Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/spec/doc/core-testing-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ that exists in the background:
class SearchTests extends geb.junit4.GebTest {

@Test
void executeSeach() {
void executeSearch() {
go 'http://somehost/mayapp/search' // <1>
$('#searchField').text = 'John Doe' // <2>
$('#searchButton').click() // <3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static long utc(long time) {
}

private static Date internalDate(TimeZone tz, int year, int month, int day, int hour,
int minute, int second, int miliseconds) {
int minute, int second, int milliseconds) {

Calendar calendar = Calendar.getInstance();

Expand All @@ -48,7 +48,7 @@ private static Date internalDate(TimeZone tz, int year, int month, int day, int
calendar.set(Calendar.HOUR_OF_DAY, hour);
calendar.set(Calendar.MINUTE, minute);
calendar.set(Calendar.SECOND, second);
calendar.set(Calendar.MILLISECOND, miliseconds);
calendar.set(Calendar.MILLISECOND, milliseconds);

calendar.setTimeZone(tz);

Expand All @@ -61,8 +61,8 @@ public static Date toDate(TimeZone tz, int year, int month, int day,
}

public static Date toDate(TimeZone tz, int year, int month, int day,
int hour, int minute, int second, int miliseconds) {
return internalDate(tz, year, month, day, hour, minute, second, miliseconds);
int hour, int minute, int second, int milliseconds) {
return internalDate(tz, year, month, day, hour, minute, second, milliseconds);
}

static final int SHORT_ISO_8601_TIME_LENGTH = "1994-11-05T08:15:30Z".length();
Expand Down Expand Up @@ -109,11 +109,11 @@ public static Date fromJsonDate(char[] charArray, int from, int to) {

int second = CharScanner.parseIntFromTo(charArray, from + 17, from + 19);

int miliseconds = CharScanner.parseIntFromTo(charArray, from + 20, from + 23);
int milliseconds = CharScanner.parseIntFromTo(charArray, from + 20, from + 23);

TimeZone tz = TimeZone.getTimeZone("GMT");

return toDate(tz, year, month, day, hour, minute, second, miliseconds);
return toDate(tz, year, month, day, hour, minute, second, milliseconds);
} else {
return null;
}
Expand Down