我正在尝试从 git 终端修改配置文件,为此,在存储库内,我启动了命令git global --edit。
编辑器在同一终端中打开,我的问题是,如何保存更改并退出编辑器??每次我进行更改时,编辑器都会崩溃,我必须重新开始。
有没有办法在终端之外更轻松地完成此操作?
tests我正在为共享数据列表的两个类创建。当我使用时EqualsVerifier,我收到一个错误,因为它要求我提供包含这两个类共享的数据的列表。
这是错误:
Recursive datastructure. Add prefab values for one of the following types: CustomerView, List<YearConfigView>, YearConfigView
这是@Test班级:
@Test
public void CustomerViewTest() {
EqualsVerifier.forClass(CustomerView.class).withRedefinedSuperclass().withGenericPrefabValues(CustomerView.class).verify();
}
@Test
public void YearConfigViewTest() {
EqualsVerifier.forClass(YearConfigView.class).suppress(Warning.ALL_FIELDS_SHOULD_BE_USED).verify();
}
Run Code Online (Sandbox Code Playgroud)
CustomerView.java:
public class CustomerView extends EntityBase<Integer> {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String name;
private List<YearConfigView> yearConfigs;
@JsonProperty("current_year_config")
public YearConfigView getCurrentYearConfig() {
if (this.getYearConfigs() == null || this.getYearConfigs().isEmpty()) {
return null;
}
int currentYear = LocalDate.now().getYear();
return this.yearConfigs.parallelStream().filter(yc …Run Code Online (Sandbox Code Playgroud)