All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cognifide.aet.model.ExtendedUrl Maven / Gradle / Ivy

There is a newer version: 3.2.2
Show newest version
/**
 * Automated Exploratory Tests
 *
 * Copyright (C) 2013 Cognifide Limited
 *
 * 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 the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.cognifide.aet.model;

import java.io.Serializable;

/**
 * Model of url which will be processed during test.
 */
public class ExtendedUrl implements Serializable {

  private static final long serialVersionUID = 3374859166487103749L;

  private final String url;

  private final String name;

  private final String description;

  /**
   * @param url - url (full or relative) of page which will be tested.
   * @param name - unique name of this url.
   * @param description - additional description of url, will be visible on report.
   */
  public ExtendedUrl(String url, String name, String description) {
    this.url = url;
    this.name = name;
    this.description = description;
  }

  /**
   * @return url (full or relative) of page which will be tested.
   */
  public String getUrl() {
    return url;
  }

  /**
   * @return unique name of url.
   */
  public String getName() {
    return name;
  }

  /**
   * @return additional description of url.
   */
  public String getDescription() {
    return description;
  }

  @Override
  public String toString() {
    return "ExtendedUrl [url=" + url + ", name=" + name + "]";
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy