Skip to content

Commit

Permalink
#103 綴り間違いを修正
Browse files Browse the repository at this point in the history
getConiguration -> getConfiguration
setConiguration -> setConfiguration
  • Loading branch information
mygreen committed Jun 23, 2019
1 parent 03d25ec commit fb27e19
Show file tree
Hide file tree
Showing 33 changed files with 373 additions and 373 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/gh/mygreen/xlsmapper/XlsMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,23 +178,23 @@ public class XlsMapper {
*/
public XlsMapper() {
this.configuration = new Configuration();
this.loader = new XlsLoader(getConiguration());
this.saver = new XlsSaver(getConiguration());
this.loader = new XlsLoader(getConfiguration());
this.saver = new XlsSaver(getConfiguration());
}

/**
* システム情報を取得します。
* @return 現在のシステム情報
*/
public Configuration getConiguration() {
public Configuration getConfiguration() {
return configuration;
}

/**
* システム情報を設定します。
* @param configuration システム情報
*/
public void setConiguration(Configuration configuration) {
public void setConfiguration(Configuration configuration) {
this.configuration = configuration;
getLoader().setConfiguration(configuration);
getSaver().setConfiguration(configuration);
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/gh/mygreen/xlsmapper/SampleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public void test_overide_sheetName() throws Exception {
.buildXml();

XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setAnnotationMapping(xmlInfo);
mapper.getConfiguration().setAnnotationMapping(xmlInfo);

// XmlMapperクラスに直接渡せます。
OverrideSheetName sheet = mapper.load(
Expand Down
16 changes: 8 additions & 8 deletions src/test/java/com/gh/mygreen/xlsmapper/XlsMapperTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void testLoad_customProcessorAnno_withField() throws Exception {
.buildClass())
.buildXml();

mapper.getConiguration().setAnnotationMapping(xmlInfo);
mapper.getConfiguration().setAnnotationMapping(xmlInfo);

try(InputStream in = new FileInputStream(inputFile)) {
SheetBindingErrors<CustomAnnoSheet> errors = mapper.loadDetail(in, CustomAnnoSheet.class);
Expand Down Expand Up @@ -170,7 +170,7 @@ public void testLoad_customProcessorAnno_withField_noProcessor() throws Exceptio
.buildClass())
.buildXml();

mapper.getConiguration().setAnnotationMapping(xmlInfo);
mapper.getConfiguration().setAnnotationMapping(xmlInfo);

try(InputStream in = new FileInputStream(inputFile)) {

Expand Down Expand Up @@ -200,7 +200,7 @@ public void testLoad_customProcessorAnno_withSetter() throws Exception {
.buildClass())
.buildXml();

mapper.getConiguration().setAnnotationMapping(xmlInfo);
mapper.getConfiguration().setAnnotationMapping(xmlInfo);

try(InputStream in = new FileInputStream(inputFile)) {
SheetBindingErrors<CustomAnnoSheet> errors = mapper.loadDetail(in, CustomAnnoSheet.class);
Expand Down Expand Up @@ -229,7 +229,7 @@ public void testLoad_customProcessorAnno_withSetter_noProcessor() throws Excepti
.buildClass())
.buildXml();

mapper.getConiguration().setAnnotationMapping(xmlInfo);
mapper.getConfiguration().setAnnotationMapping(xmlInfo);

try(InputStream in = new FileInputStream(inputFile)) {

Expand Down Expand Up @@ -302,7 +302,7 @@ public void testSave_customProcessorAnno_withField() throws Exception {
.buildClass())
.buildXml();

mapper.getConiguration().setAnnotationMapping(xmlInfo);
mapper.getConfiguration().setAnnotationMapping(xmlInfo);

File outFile = new File(OUT_DIR, outFilename);
try(InputStream template = new FileInputStream(templateFile);
Expand Down Expand Up @@ -342,7 +342,7 @@ public void testSave_customProcessorAnno_withField_noProcessor() throws Exceptio
.buildClass())
.buildXml();

mapper.getConiguration().setAnnotationMapping(xmlInfo);
mapper.getConfiguration().setAnnotationMapping(xmlInfo);

File outFile = new File(OUT_DIR, outFilename);
try(InputStream template = new FileInputStream(templateFile);
Expand Down Expand Up @@ -375,7 +375,7 @@ public void testSave_customProcessorAnno_withGetter() throws Exception {
.buildClass())
.buildXml();

mapper.getConiguration().setAnnotationMapping(xmlInfo);
mapper.getConfiguration().setAnnotationMapping(xmlInfo);

File outFile = new File(OUT_DIR, outFilename);
try(InputStream template = new FileInputStream(templateFile);
Expand Down Expand Up @@ -415,7 +415,7 @@ public void testSave_customProcessorAnno_withGetter_noProcessor() throws Excepti
.buildClass())
.buildXml();

mapper.getConiguration().setAnnotationMapping(xmlInfo);
mapper.getConfiguration().setAnnotationMapping(xmlInfo);

File outFile = new File(OUT_DIR, outFilename);
try(InputStream template = new FileInputStream(templateFile);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void setUp() throws Exception {
@Test
public void test_load_boolean() throws Exception {
XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

try(InputStream in = new FileInputStream("src/test/data/convert.xlsx")) {
SheetBindingErrors<BooleanSheet> errors = mapper.loadDetail(in, BooleanSheet.class);
Expand Down Expand Up @@ -296,7 +296,7 @@ public void test_save_boolean() throws Exception {

// ファイルへの書き込み
XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

File outFile = new File(OUT_DIR, "convert_boolean.xlsx");
try(InputStream template = new FileInputStream("src/test/data/convert_template.xlsx");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void setUp() throws Exception {
public void test_load_collection() throws Exception {

XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

try(InputStream in = new FileInputStream("src/test/data/convert.xlsx")) {
SheetBindingErrors<CollectionSheet> errors = mapper.loadDetail(in, CollectionSheet.class);
Expand Down Expand Up @@ -508,7 +508,7 @@ public void test_save_collection() throws Exception {

// ファイルへの書き込み
XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

File outFile = new File(OUT_DIR, "convert_collection.xlsx");
try(InputStream template = new FileInputStream("src/test/data/convert_template.xlsx");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void setUp() throws Exception {
public void testLoadWithConvertAnno() throws Exception {

XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

try(InputStream in = new FileInputStream("src/test/data/convert.xlsx")) {
SheetBindingErrors<CustomWithAnnoSheet> errors = mapper.loadDetail(in, CustomWithAnnoSheet.class);
Expand All @@ -94,9 +94,9 @@ public void testLoadWithConvertAnno() throws Exception {
public void testLoadWithConverRegistry() throws Exception {

XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

mapper.getConiguration().getConverterRegistry().registerConverter(CustomType.class, new CustomCellConverterFactory());
mapper.getConfiguration().getConverterRegistry().registerConverter(CustomType.class, new CustomCellConverterFactory());

try(InputStream in = new FileInputStream("src/test/data/convert.xlsx")) {
SheetBindingErrors<CustomWithRegisterSheet> errors = mapper.loadDetail(in, CustomWithRegisterSheet.class);
Expand Down Expand Up @@ -128,7 +128,7 @@ public void testSaveWithConvertAnno() throws Exception {
}

XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

// ファイルへの書き込み
File outFile = new File(OUT_DIR, "convert_custom.xlsx");
Expand Down Expand Up @@ -170,9 +170,9 @@ public void testSaveWithConvertRegister() throws Exception {
}

XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

mapper.getConiguration().getConverterRegistry().registerConverter(CustomType.class, new CustomCellConverterFactory());
mapper.getConfiguration().getConverterRegistry().registerConverter(CustomType.class, new CustomCellConverterFactory());

// ファイルへの書き込み
File outFile = new File(OUT_DIR, "convert_custom.xlsx");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void setUp() throws Exception {
public void test_load_date_time() throws Exception {

XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

try(InputStream in = new FileInputStream("src/test/data/convert.xlsx")) {
SheetBindingErrors<DateTimeSheet> errors = mapper.loadDetail(in, DateTimeSheet.class);
Expand Down Expand Up @@ -333,7 +333,7 @@ public void test_save_date_time() throws Exception {

// ファイルへの書き込み
XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

File outFile = new File(OUT_DIR, "convert_datetime.xlsx");
try(InputStream template = new FileInputStream("src/test/data/convert_template.xlsx");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void setUp() throws Exception {
@Test
public void test_load_enum() throws Exception {
XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

try(InputStream in = new FileInputStream("src/test/data/convert.xlsx")) {
SheetBindingErrors<EnumSheet> errors = mapper.loadDetail(in, EnumSheet.class);
Expand Down Expand Up @@ -278,7 +278,7 @@ public void test_save_enum() throws Exception {

// ファイルへの書き込み
XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

File outFile = new File(OUT_DIR, "convert_enum.xlsx");
try(InputStream template = new FileInputStream("src/test/data/convert_template.xlsx");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void setUp() throws Exception {
@Test
public void test_load_link() throws Exception {
XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

try(InputStream in = new FileInputStream("src/test/data/convert.xlsx")) {
SheetBindingErrors<LinkSheet> errors = mapper.loadDetail(in, LinkSheet.class);
Expand Down Expand Up @@ -359,7 +359,7 @@ public void test_save_link() throws Exception {

// ファイルへの書き込み
XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

File outFile = new File(OUT_DIR, "convert_link.xlsx");
try(InputStream template = new FileInputStream("src/test/data/convert_template.xlsx");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void setUp() throws Exception {
public void test_load_number() throws Exception {

XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

try(InputStream in = new FileInputStream("src/test/data/convert.xlsx")) {
SheetBindingErrors<NumberSheet> errors = mapper.loadDetail(in, NumberSheet.class);
Expand Down Expand Up @@ -1080,7 +1080,7 @@ public void test_save_number() throws Exception {

// ファイルへの書き込み
XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

File outFile = new File(OUT_DIR, "convert_number.xlsx");
try(InputStream template = new FileInputStream("src/test/data/convert_template.xlsx");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void setUp() throws Exception {
public void test_load_date_time() throws Exception {

XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

try(InputStream in = new FileInputStream("src/test/data/convert.xlsx")) {
SheetBindingErrors<TemporalSheet> errors = mapper.loadDetail(in, TemporalSheet.class);
Expand Down Expand Up @@ -277,7 +277,7 @@ public void test_save_date_time() throws Exception {

// ファイルへの書き込み
XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

File outFile = new File(OUT_DIR, "convert_jsr310.xlsx");
try(InputStream template = new FileInputStream("src/test/data/convert_template.xlsx");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static void setUpBeforeClass() throws Exception {
public void test_load_text() throws Exception {

XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

try(InputStream in = new FileInputStream("src/test/data/convert.xlsx")) {
SheetBindingErrors<TextSheet> errors = mapper.loadDetail(in, TextSheet.class);
Expand Down Expand Up @@ -224,7 +224,7 @@ public void test_save_text() throws Exception {

// ファイルへの書き込み
XlsMapper mapper = new XlsMapper();
mapper.getConiguration().setContinueTypeBindFailure(true);
mapper.getConfiguration().setContinueTypeBindFailure(true);

File outFile = new File(OUT_DIR, "convert_text.xlsx");
try(InputStream template = new FileInputStream("src/test/data/convert_template.xlsx");
Expand Down

0 comments on commit fb27e19

Please sign in to comment.