$.ProfileFT.java Source code

Java tutorial

Introduction

Here is the source code for $.ProfileFT.java

Source

    #set($symbol_pound='#')#set($symbol_dollar='$')#set($symbol_escape='\')
/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package ${package}.functional.gui;

    import static org.assertj.core.api.Assertions.*;

    import org.junit.Test;
    import org.openqa.selenium.By;
import ${package}.functional.BaseSeleniumTestCase;

    public class ProfileFT extends BaseSeleniumTestCase {

        /**
         * .
         */
        @Test
        public void editProfile() {
            s.open("/profile");
            s.type(By.id("name"), "Kevin");
            s.click(By.id("submit_btn"));
            assertThat(s.isTextPresent("Kevin")).as("??").isTrue();
        }
    }