Copyright date range

This commit is contained in:
Rob Winch 2017-09-18 11:18:46 -05:00
parent 1f4082e754
commit f8ee9944ff
49 changed files with 91 additions and 91 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2002-2017 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); you may not * Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of * use this file except in compliance with the License. You may obtain a copy of

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); you may not * Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of * use this file except in compliance with the License. You may obtain a copy of

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); you may not * Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of * use this file except in compliance with the License. You may obtain a copy of

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -53,4 +53,4 @@ class FormJcTests extends GebReportingSpec {
then: 'The login page is displayed' then: 'The login page is displayed'
at LoginPage at LoginPage
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,4 +29,4 @@ class HomePage extends Page {
user { $('p.navbar-text').text() } user { $('p.navbar-text').text() }
logout { $('input', type: 'submit').click() } logout { $('input', type: 'submit').click() }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -34,4 +34,4 @@ class LoginPage extends Page {
loginForm { $('form') } loginForm { $('form') }
submit { $('button', type: 'submit') } submit { $('button', type: 'submit') }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -53,4 +53,4 @@ class HelloWorldJcTests extends GebReportingSpec {
then: 'The login page is displayed' then: 'The login page is displayed'
at LoginPage at LoginPage
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,4 +29,4 @@ class HomePage extends Page {
message { $('p').text() } message { $('p').text() }
logout { $('input', type: 'submit').click() } logout { $('input', type: 'submit').click() }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -34,4 +34,4 @@ class LoginPage extends Page {
loginForm { $('form') } loginForm { $('form') }
submit { $('input', type: 'submit') } submit { $('input', type: 'submit') }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -53,4 +53,4 @@ class JdbcJcTests extends GebReportingSpec {
then: 'The login page is displayed' then: 'The login page is displayed'
at LoginPage at LoginPage
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,4 +29,4 @@ class HomePage extends Page {
user { $('p.navbar-text').text() } user { $('p.navbar-text').text() }
logout { $('input', type: 'submit').click() } logout { $('input', type: 'submit').click() }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -34,4 +34,4 @@ class LoginPage extends Page {
loginForm { $('form') } loginForm { $('form') }
submit { $('input', type: 'submit') } submit { $('input', type: 'submit') }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -53,4 +53,4 @@ class LdapJcTests extends GebReportingSpec {
then: 'The login page is displayed' then: 'The login page is displayed'
at LoginPage at LoginPage
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,4 +29,4 @@ class HomePage extends Page {
user { $('p.navbar-text').text() } user { $('p.navbar-text').text() }
logout { $('input', type: 'submit').click() } logout { $('input', type: 'submit').click() }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -34,4 +34,4 @@ class LoginPage extends Page {
loginForm { $('form') } loginForm { $('form') }
submit { $('input', type: 'submit') } submit { $('input', type: 'submit') }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -119,4 +119,4 @@ class CasSampleProxyTests extends AbstractCasTests {
pt = retriever.getProxyTicketIdFor(service.pgt, targetService) pt = retriever.getProxyTicketIdFor(service.pgt, targetService)
pt pt
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -132,4 +132,4 @@ class CasSampleTests extends AbstractCasTests {
then: 'user is logged out of the CAS Service' then: 'user is logged out of the CAS Service'
at LoginPage at LoginPage
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -28,4 +28,4 @@ class NavModule extends Module {
home(to: HomePage) { $("a", text: "Home") } home(to: HomePage) { $("a", text: "Home") }
logout(to: LocalLogoutPage) { $("a", text: "Logout") } logout(to: LocalLogoutPage) { $("a", text: "Logout") }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -24,4 +24,4 @@ import geb.*
*/ */
class AccessDeniedPage extends Page { class AccessDeniedPage extends Page {
static at = { $("*",text: iContains(~/.*?403.*/)) } static at = { $("*",text: iContains(~/.*?403.*/)) }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,4 +29,4 @@ class ExtremelySecurePage extends Page {
static content = { static content = {
navModule { module NavModule } navModule { module NavModule }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,4 +29,4 @@ class HomePage extends Page {
securePage { $('a',text: 'Secure page') } securePage { $('a',text: 'Secure page') }
extremelySecurePage { $('a',text: 'Extremely secure page') } extremelySecurePage { $('a',text: 'Extremely secure page') }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -43,4 +43,4 @@ class LoginPage extends Page {
def host = System.getProperty('cas.server.host', 'localhost:9443') def host = System.getProperty('cas.server.host', 'localhost:9443')
"https://${host}/cas/login" "https://${host}/cas/login"
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -30,4 +30,4 @@ class ProxyTicketSamplePage extends Page {
static content = { static content = {
navModule { module NavModule } navModule { module NavModule }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -30,4 +30,4 @@ class SecurePage extends Page {
static content = { static content = {
navModule { module NavModule } navModule { module NavModule }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -84,4 +84,4 @@ class ContactsTests extends GebReportingSpec {
then: 'The login page is displayed' then: 'The login page is displayed'
at LoginPage at LoginPage
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -34,4 +34,4 @@ class AddPage extends Page {
addForm { $('form') } addForm { $('form') }
submit { $('input', type: 'submit') } submit { $('input', type: 'submit') }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -41,4 +41,4 @@ class Contact extends Module {
delete { cell(3).$('a').click() } delete { cell(3).$('a').click() }
adminPermission { cell(4).$('a') } adminPermission { cell(4).$('a') }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -27,4 +27,4 @@ class DeleteConfirmPage extends Page {
static content = { static content = {
manage(to: ContactsPage) { $('a', text: 'Manage') } manage(to: ContactsPage) { $('a', text: 'Manage') }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -30,4 +30,4 @@ class HomePage extends Page {
debug { $('a', text: 'Debug').click() } debug { $('a', text: 'Debug').click() }
frames { $('a', text: 'Frames').click() } frames { $('a', text: 'Frames').click() }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -34,4 +34,4 @@ class LoginPage extends Page {
loginForm { $('form') } loginForm { $('form') }
submit { $('input', type: 'submit') } submit { $('input', type: 'submit') }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -54,4 +54,4 @@ class HelloWorldXmlTests extends GebReportingSpec {
then: 'The login page is displayed' then: 'The login page is displayed'
at LoginPage at LoginPage
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,4 +29,4 @@ class HomePage extends Page {
message { $('p').text() } message { $('p').text() }
logout { $('input', type: 'submit').click() } logout { $('input', type: 'submit').click() }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -34,4 +34,4 @@ class LoginPage extends Page {
loginForm { $('form') } loginForm { $('form') }
submit { $('input', type: 'submit') } submit { $('input', type: 'submit') }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -33,4 +33,4 @@ class HelloInsecureTests extends GebReportingSpec {
and: 'We can see the message' and: 'We can see the message'
message == 'We would like to secure this page' message == 'We would like to secure this page'
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -28,4 +28,4 @@ class HomePage extends Page {
static content = { static content = {
message { $('p').text() } message { $('p').text() }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -58,4 +58,4 @@ class JaasXmlTests extends GebReportingSpec {
then: 'The login page is displayed' then: 'The login page is displayed'
at LoginPage at LoginPage
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -28,4 +28,4 @@ class HomePage extends Page {
static content = { static content = {
securePage(to: [SecurePage,LoginPage]) { $('a').click() } securePage(to: [SecurePage,LoginPage]) { $('a').click() }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -34,4 +34,4 @@ class LoginPage extends Page {
loginForm { $('form') } loginForm { $('form') }
submit { $('input', type: 'submit') } submit { $('input', type: 'submit') }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -25,4 +25,4 @@ import geb.Page
class LogoutPage extends LoginPage { class LogoutPage extends LoginPage {
static url = 'login' static url = 'login'
static at = { assert driver.title == 'Login Page' && $('p').text() == 'You have been logged out'; true} static at = { assert driver.title == 'Login Page' && $('p').text() == 'You have been logged out'; true}
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,4 +29,4 @@ class SecurePage extends Page {
message { $('p').text() } message { $('p').text() }
logout { $('input', type: 'submit').click() } logout { $('input', type: 'submit').click() }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -57,4 +57,4 @@ class LdapXmlTests extends GebReportingSpec {
then: 'The login page is displayed' then: 'The login page is displayed'
at LoginPage at LoginPage
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -28,4 +28,4 @@ class HomePage extends Page {
static content = { static content = {
secure(to: [SecurePage,LoginPage]) { $('a', text: 'Secure page') } secure(to: [SecurePage,LoginPage]) { $('a', text: 'Secure page') }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -34,4 +34,4 @@ class LoginPage extends Page {
loginForm { $('form') } loginForm { $('form') }
submit { $('input', type: 'submit') } submit { $('input', type: 'submit') }
} }
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -22,4 +22,4 @@ package org.springframework.security.samples.pages
class LogoutPage extends LoginPage { class LogoutPage extends LoginPage {
static url = 'login' static url = 'login'
static at = { assert driver.title == 'Login Page' && $('p').text() == 'You have been logged out'; true} static at = { assert driver.title == 'Login Page' && $('p').text() == 'You have been logged out'; true}
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2011 the original author or authors. * Copyright 2002-2011 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -28,4 +28,4 @@ class SecurePage extends Page {
static content = { static content = {
logout { $("input[type=submit]", value: "Logoff") } logout { $("input[type=submit]", value: "Logoff") }
} }
} }