source: trunk/autoquest-core-events-test/src/test/java/de/ugoe/cs/autoquest/eventcore/guimodel/MockGUIElement.java @ 1433

Last change on this file since 1433 was 1433, checked in by pharms, 10 years ago
  • added support to retrieve the GUI model to which a GUI element belongs from the GUI element itself
  • Property svn:mime-type set to text/plain
File size: 1.7 KB
Line 
1//   Copyright 2012 Georg-August-Universität Göttingen, Germany
2//
3//   Licensed under the Apache License, Version 2.0 (the "License");
4//   you may not use this file except in compliance with the License.
5//   You may obtain a copy of the License at
6//
7//       http://www.apache.org/licenses/LICENSE-2.0
8//
9//   Unless required by applicable law or agreed to in writing, software
10//   distributed under the License is distributed on an "AS IS" BASIS,
11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//   See the License for the specific language governing permissions and
13//   limitations under the License.
14
15package de.ugoe.cs.autoquest.eventcore.guimodel;
16
17public class MockGUIElement implements IGUIElement {
18   
19    /**  */
20    private static final long serialVersionUID = 1L;
21   
22    MockGUIElementSpec spec;
23   
24    IGUIElement parent;
25   
26    public MockGUIElement(MockGUIElementSpec spec, IGUIElement parent){
27        this.spec = spec;
28        this.parent = parent;
29    }
30
31    @Override
32    public String getPlatform() {
33        return null;
34    }
35
36    @Override
37    public String getStringIdentifier() {
38        return null;
39    }
40
41    @Override
42    public IGUIElementSpec getSpecification() {
43        return spec;
44    }
45
46    @Override
47    public IGUIElement getParent() {
48        return parent;
49    }
50
51    @Override
52    public GUIModel getGUIModel() {
53        return null;
54    }
55
56    @Override
57    public void updateSpecification(IGUIElementSpec furtherSpec) { }
58
59    @Override
60    public void addEqualGUIElement(IGUIElement equalElement) { }
61
62    @Override
63    public boolean isUsed() {
64        return false;
65    }
66
67    @Override
68    public void markUsed() { }
69
70}
Note: See TracBrowser for help on using the repository browser.