It will allow to have more information in error generated by plugin or in debug logs.
return type;
}
+ @Override
+ public String getKey() {
+ return key;
+ }
+
@Override
public FileAttributes getFileAttributes() {
checkState(this.type == Component.Type.FILE, "Only component of type FILE have a FileAttributes object");
public void create_project() throws Exception {
ComponentImpl component = new ComponentImpl("Project", Component.Type.PROJECT, null);
+ assertThat(component.getKey()).isEqualTo("Project");
assertThat(component.getType()).isEqualTo(Component.Type.PROJECT);
}
Type getType();
+ String getKey();
+
/**
* The attributes of the Component if it's type is File.
*
return type;
}
+ @Override
+ public String getKey() {
+ return key;
+ }
+
@Override
public FileAttributes getFileAttributes() {
checkState(this.type == Component.Type.FILE, "Only component of type FILE have a FileAttributes object");