View Javadoc
1   /*
2    * Copyright 2010 James Pether Sörling
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   *
16   *	$Id$
17   *  $HeadURL$
18  */
19  package com.hack23.cia.testfoundation;
20  
21  import java.util.Arrays;
22  import java.util.Collection;
23  
24  import org.junit.FixMethodOrder;
25  import org.junit.Test;
26  import org.junit.runner.RunWith;
27  import org.junit.runners.MethodSorters;
28  import org.junit.runners.Parameterized.Parameters;
29  
30  /**
31   * The Class SystemIntegrationTest.
32   */
33  @RunWith(Parallelized.class)
34  @FixMethodOrder(MethodSorters.NAME_ASCENDING)
35  public final class SystemIntegrationTest extends AbstractSystemIntegrationTest {
36  
37  	/** The browser. */
38  	private final String browser;
39  
40  	/**
41  	 * Instantiates a new system integration test.
42  	 *
43  	 * @param browser
44  	 *            the browser
45  	 */
46  	public SystemIntegrationTest(final String browser) {
47  		super();
48  		this.browser = browser;
49  	}
50  
51  	/**
52  	 * Browsers strings.
53  	 *
54  	 * @return the collection
55  	 */
56  	@Parameters(name = "SiteTest{index}: browser({0})")
57  	public static Collection<String[]> browsersStrings() {
58  		return Arrays.asList(new String[][] { { "firefox" } });	}
59  
60  	/**
61  	 * Example test.
62  	 */
63  	@Test
64  	public void exampleTest() {
65  		assertEquals("firefox", browser);
66  	}
67  
68  
69  }