test_class.declarator: projectRepoMock
test_class.modifier: @MockBean
  	private
test_class.original_string: @MockBean
  	private ProjectJpaRepository projectRepoMock;
test_class.type: ProjectJpaRepository
test_class.var_name: projectRepoMock
test_class.declarator: projectService
test_class.modifier: @InjectMocks
  	private
test_class.original_string: @InjectMocks
  	private ProjectService projectService;
test_class.type: ProjectService
test_class.var_name: projectService
test_class.file: tools/interfaceBuilder/src/test/java/interfacebuilder/projects/ProjectServiceTest.java
test_class.identifier: ProjectServiceTest
test_case.body: @Test
  	public void testGetAllProjects() {
  		final Project project1 = new Project("name1", "path1", Game.SC2);
  		project1.setId(1);
  		final Project project2 = new Project("name2", "path2", Game.HEROES);
  		project2.setId(2);
  		when(projectRepoMock.findAll()).thenReturn(Arrays.asList(project1, project2));
  		
  		final int numberOfProjects = projectService.getAllProjects().size();
  		assertEquals(2, numberOfProjects, "not fetching all existing projects");
  	}
test_case.class_method_signature: ProjectServiceTest.testGetAllProjects()
test_case.full_signature: @Test public void testGetAllProjects()
test_case.identifier: testGetAllProjects
test_case.invocations: setId setId thenReturn when findAll asList size getAllProjects assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAllProjects()
focal_class.declarator: DIRECTORY_SYMBOL = "/"
focal_class.modifier: private static final
focal_class.original_string: private static final String DIRECTORY_SYMBOL = "/";
focal_class.type: String
focal_class.var_name: DIRECTORY_SYMBOL
focal_class.declarator: logger = LogManager.getLogger(ProjectService.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LogManager.getLogger(ProjectService.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: projectRepo
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private ProjectJpaRepository projectRepo;
focal_class.type: ProjectJpaRepository
focal_class.var_name: projectRepo
focal_class.declarator: mpqBuilderService
focal_class.modifier: @Autowired
  	private
focal_class.original_string: @Autowired
  	private MpqBuilderService mpqBuilderService;
focal_class.type: MpqBuilderService
focal_class.var_name: mpqBuilderService
focal_class.file: tools/interfaceBuilder/src/main/java/interfacebuilder/projects/ProjectService.java
focal_class.identifier: ProjectService
focal_class.class_method_signature: ProjectService.pathContainsCompileableForGame(final String path, final GameData game)
focal_class.full_signature: public boolean pathContainsCompileableForGame(final String path, final GameData game)
focal_class.identifier: pathContainsCompileableForGame
focal_class.modifiers: public
focal_class.parameters: (final String path, final GameData game)
focal_class.return: boolean
focal_class.signature: boolean pathContainsCompileableForGame(final String path, final GameData game)
focal_class.class_method_signature: ProjectService.getAllProjects()
focal_class.full_signature: public List<Project> getAllProjects()
focal_class.identifier: getAllProjects
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Project>
focal_class.signature: List<Project> getAllProjects()
focal_class.class_method_signature: ProjectService.saveProject(final Project project)
focal_class.full_signature: public Project saveProject(final Project project)
focal_class.identifier: saveProject
focal_class.modifiers: public
focal_class.parameters: (final Project project)
focal_class.return: Project
focal_class.signature: Project saveProject(final Project project)
focal_class.class_method_signature: ProjectService.build(final Iterable<Project> projects, final boolean useCmdLineSettings)
focal_class.full_signature: public void build(final Iterable<Project> projects, final boolean useCmdLineSettings)
focal_class.identifier: build
focal_class.modifiers: public
focal_class.parameters: (final Iterable<Project> projects, final boolean useCmdLineSettings)
focal_class.return: void
focal_class.signature: void build(final Iterable<Project> projects, final boolean useCmdLineSettings)
focal_class.class_method_signature: ProjectService.deleteProject(final Project project)
focal_class.full_signature: public void deleteProject(final Project project)
focal_class.identifier: deleteProject
focal_class.modifiers: public
focal_class.parameters: (final Project project)
focal_class.return: void
focal_class.signature: void deleteProject(final Project project)
focal_class.class_method_signature: ProjectService.getProjectsOfPath(final String path)
focal_class.full_signature: public List<Project> getProjectsOfPath(final String path)
focal_class.identifier: getProjectsOfPath
focal_class.modifiers: public
focal_class.parameters: (final String path)
focal_class.return: List<Project>
focal_class.signature: List<Project> getProjectsOfPath(final String path)
focal_class.class_method_signature: ProjectService.fetchBestCompressionRuleSet(final Project project)
focal_class.full_signature: @Transactional public RuleSet fetchBestCompressionRuleSet(final Project project)
focal_class.identifier: fetchBestCompressionRuleSet
focal_class.modifiers: @Transactional public
focal_class.parameters: (final Project project)
focal_class.return: RuleSet
focal_class.signature: RuleSet fetchBestCompressionRuleSet(final Project project)
focal_class.class_method_signature: ProjectService.createTemplateProjectFiles(final Project project)
focal_class.full_signature: public void createTemplateProjectFiles(final Project project)
focal_class.identifier: createTemplateProjectFiles
focal_class.modifiers: public
focal_class.parameters: (final Project project)
focal_class.return: void
focal_class.signature: void createTemplateProjectFiles(final Project project)
focal_method.body: public List<Project> getAllProjects() {
  		return projectRepo.findAll();
  	}
focal_method.class_method_signature: ProjectService.getAllProjects()
focal_method.full_signature: public List<Project> getAllProjects()
focal_method.identifier: getAllProjects
focal_method.invocations: findAll
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: List<Project>
focal_method.signature: List<Project> getAllProjects()