-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #526 from wblachowski/feature/sending-urls-in-pack…
…ages Add sending urls in packets
- Loading branch information
Showing
11 changed files
with
160 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
core/runner/src/main/java/com/cognifide/aet/runner/processing/data/UrlPacket.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/** | ||
* AET | ||
* | ||
* 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.runner.processing.data; | ||
|
||
import com.cognifide.aet.communication.api.metadata.Suite; | ||
import com.cognifide.aet.communication.api.metadata.Test; | ||
import com.cognifide.aet.communication.api.metadata.Url; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class UrlPacket { | ||
|
||
private final Suite suite; | ||
private final Test test; | ||
private final List<Url> urls = new ArrayList<>(); | ||
|
||
public UrlPacket(Suite suite, Test test) { | ||
this.suite = suite; | ||
this.test = test; | ||
} | ||
|
||
public void addUrl(Url url) { | ||
urls.add(url); | ||
} | ||
|
||
public String getCompany() { | ||
return suite.getCompany(); | ||
} | ||
|
||
public String getProject() { | ||
return suite.getProject(); | ||
} | ||
|
||
public String getName() { | ||
return suite.getName(); | ||
} | ||
|
||
public String getTestName() { | ||
return test.getName(); | ||
} | ||
|
||
public String getProxy() { | ||
return test.getProxy(); | ||
} | ||
|
||
public String getPreferredBrowserId() { | ||
return test.getPreferredBrowserId(); | ||
} | ||
|
||
public List<Url> getUrls() { | ||
return urls; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.