p.long_name as longName,
p.qualifier as qualifier,
s.root_project_id as projectId,
- p.root_id as subProjectId
+ p.root_id as subProjectId,
+ p.path as path
</sql>
<resultMap id="snapshotResultMap" type="Snapshot">
assertThat(component.qualifier()).isEqualTo("FIL");
assertThat(component.projectId()).isEqualTo(1);
assertThat(component.subProjectId()).isEqualTo(2);
+ assertThat(component.path()).isEqualTo("src/org/struts/RequestContext.java");
// Module
results = dao.selectComponentsByIds(newArrayList(2L));
assertThat(component.qualifier()).isEqualTo("BRC");
assertThat(component.subProjectId()).isEqualTo(1);
assertThat(component.projectId()).isEqualTo(1);
+ assertThat(component.path()).isNull();
// Project
results = dao.selectComponentsByIds(newArrayList(1L));
assertThat(component.qualifier()).isEqualTo("TRK");
assertThat(component.subProjectId()).isNull();
assertThat(component.projectId()).isEqualTo(1);
+ assertThat(component.path()).isNull();
}
@Test