Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package cz.spsmb.ctvrtak.c_spring.a_config.main.java;

import javax.print.Doc;
import java.util.List;

public interface SearchEngine {
List<Doc> listAll();
List<Doc> findByType();
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,78 @@
* 4. výsledek pošlete pull-requestem zpátky na github pro oznámkování.
*/
public class Zadani {
public class Type{
private String name;
private String desc;
private String extension;

public Type(String name, String desc, String extension) {
this.name = name;
this.desc = desc;
this.extension = extension;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getDesc() {
return desc;
}

public void setDesc(String desc) {
this.desc = desc;
}

public String getExtension() {
return extension;
}

public void setExtension(String extension) {
this.extension = extension;
}

}
public class Doc{

private String name;
private String location;
Type type;

public Doc(String name, String location, Type type) {
this.name = name;
this.location = location;
this.type = type;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getLocation() {
return location;
}

public void setLocation(String location) {
this.location = location;
}

public Type getType() {
return type;
}

public void setType(Type type) {
this.type = type;
}


}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package cz.spsmb.ctvrtak.c_spring.a_config.test.java;

import cz.spsmb.ctvrtak.c_spring.a_config.main.java.SearchEngine;
import org.junit.jupiter.api.Test;

import java.util.List;


public class MyDocumentTest {
private SearchEngine engine = new MySearchEngine;

@Test
public void testFindByType() {
engine.findByType();
//assert
}
@Test
public void testListAll() {
engine.listAll();
}

private List storage{

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package cz.spsmb.ctvrtak.c_spring.a_config.test.java;

import cz.spsmb.ctvrtak.c_spring.a_config.main.java.SearchEngine;

import javax.print.Doc;
import java.util.List;

public class MySearchEngine implements SearchEngine {
@Override
public List<Doc> listAll() {
return null;
}

@Override
public List<Doc> findByType() {
return null;
}
}