This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Attempt 1: Just the function name as the prompt. Totally wrong approach, plus neither of | |
// the reportStore methods exists, plus reportStore is a dependency anyway, not | |
// the class under test. | |
// | |
// fun `deletes unsubmitted project-level reports when project is deleted`() { | |
// val projectReports = reportStore.findReportsByProjectId(projectId) | |
// projectReports.forEach { report -> | |
// if (!report.isSubmitted) { | |
// reportStore.deleteReport(report.reportId) | |
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example | |
import com.fasterxml.jackson.databind.ObjectMapper | |
import com.fasterxml.jackson.databind.introspect.AnnotatedField | |
import com.fasterxml.jackson.databind.introspect.AnnotatedMember | |
import com.fasterxml.jackson.databind.introspect.AnnotatedMethod | |
import com.fasterxml.jackson.databind.introspect.VisibilityChecker | |
import java.lang.reflect.Field | |
import java.lang.reflect.Member | |
import java.lang.reflect.Method |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Removes local branches whose contents have already been merged into main. | |
# | |
set -eo pipefail | |
say() { | |
echo === | |
echo === "$@" | |
echo === |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thesegovia.payment.serial | |
import com.thoughtworks.xstream.converters.Converter | |
import com.thoughtworks.xstream.converters.MarshallingContext | |
import com.thoughtworks.xstream.converters.UnmarshallingContext | |
import com.thoughtworks.xstream.io.HierarchicalStreamReader | |
import com.thoughtworks.xstream.io.HierarchicalStreamWriter | |
import org.axonframework.eventhandling.GapAwareTrackingToken | |
/** |