Skip to content

Commit 357b776

Browse files
committed
fix programming test
1 parent 713c76a commit 357b776

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/main/java/de/tum/cit/aet/artemis/atlas/repository/LearnerProfileRepository.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
import org.springframework.context.annotation.Conditional;
66
import org.springframework.data.jpa.repository.Modifying;
7-
import org.springframework.data.jpa.repository.Query;
8-
import org.springframework.data.repository.query.Param;
97
import org.springframework.stereotype.Repository;
108
import org.springframework.transaction.annotation.Transactional;
119

@@ -24,9 +22,6 @@ default LearnerProfile findByUserElseThrow(User user) {
2422
return getValueElseThrow(findByUser(user));
2523
}
2624

27-
@Query("SELECT lp FROM LearnerProfile lp WHERE lp.id = :id")
28-
Optional<LearnerProfile> findByIdInitialized(@Param("id") Long id);
29-
3025
@Transactional // ok because of delete
3126
@Modifying
3227
void deleteByUser(User user);

src/test/java/de/tum/cit/aet/artemis/athena/service/connectors/AthenaFeedbackSuggestionsServiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void testFeedbackSuggestionsProgramming() throws NetworkingException {
8282
athenaRequestMockProvider.mockGetFeedbackSuggestionsAndExpect("programming", jsonPath("$.exercise.id").value(programmingExercise.getId()),
8383
jsonPath("$.exercise.title").value(programmingExercise.getTitle()), jsonPath("$.submission.id").value(programmingSubmission.getId()),
8484
jsonPath("$.submission.repositoryUri")
85-
.value("http://localhost/api/athena/public/programming-exercises/" + programmingExercise.getId() + "/submissions/3/repository"));
85+
.value("http://localhost:8080/api/athena/public/programming-exercises/" + programmingExercise.getId() + "/submissions/3/repository"));
8686
List<ProgrammingFeedbackDTO> suggestions = athenaFeedbackSuggestionsService.getProgrammingFeedbackSuggestions(programmingExercise, programmingSubmission, true);
8787
assertThat(suggestions.getFirst().title()).isEqualTo("Not so good");
8888
assertThat(suggestions.getFirst().lineStart()).isEqualTo(3);

0 commit comments

Comments
 (0)