Package com.googlecode.gwt.test

Source Code of com.googlecode.gwt.test.FrameTest

package com.googlecode.gwt.test;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import com.google.gwt.user.client.ui.Frame;

public class FrameTest extends GwtTestTest {

   @Test
   public void title() {
      // Arrange
      Frame f = new Frame();

      // Act
      f.setTitle("title");

      // Assert
      assertEquals("title", f.getTitle());
   }

   @Test
   public void url() {
      // Arrange
      Frame f = new Frame("url");
      // Pre-Assert
      assertEquals("url", f.getUrl());

      // Act
      f.setUrl("newURL");

      // Assert
      assertEquals("newURL", f.getUrl());
   }

}
TOP

Related Classes of com.googlecode.gwt.test.FrameTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.