FINERACT-1678: Lock under processing loan accounts

This commit is contained in:
Adam Saghy
2022-09-09 10:00:01 +02:00
committed by Arnold Gálovics
parent fa169bb5d4
commit 2d73c25226
56 changed files with 1906 additions and 156 deletions
@@ -0,0 +1,72 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
Feature: COB
@cob
Scenario Outline: COB Business Step Service - run test
Given The COBBusinessStepService.run method with executeMap <executionMap>
When COBBusinessStepService.run method executed
Then The COBBusinessStepService.run result should match
Examples:
|executionMap|
|1,test|
@cob
Scenario Outline: COB Business Step Service - run test failure
Given The COBBusinessStepService.run method with executeMap <executionMap>
Then throw exception COBBusinessStepService.run method
Examples:
|executionMap|
|null|
|2,notExist|
|3,|
@cob
Scenario Outline: COB Business Step Service - getCOBBusinessStepMap test found bean
Given The COBBusinessStepService.getCOBBusinessStepMap method with businessStepClass <className>, and jobName <jobName>
When COBBusinessStepService.getCOBBusinessStepMap method executed
Then The COBBusinessStepService.getCOBBusinessStepMap result should match
Examples:
|className|jobName|
|LoanCOBBusinessStep|exist|
@cob
Scenario Outline: COB Business Step Service - getCOBBusinessStepMap empty
Given The COBBusinessStepService.getCOBBusinessStepMap method with businessStepClass <className>, and jobName <jobName>
When COBBusinessStepService.getCOBBusinessStepMap method executed
Then The COBBusinessStepService.getCOBBusinessStepMap result empty
Examples:
|className|jobName|
|LoanCOBBusinessStep|notExist|
|empty|exist|
|random|exist|
@cob
Scenario Outline: COB Business Step Service - getCOBBusinessStepMap no bean
Given The COBBusinessStepService.getCOBBusinessStepMap method with businessStepClass <className>, and jobName <jobName>
Then The COBBusinessStepService.getCOBBusinessStepMap result exception
Examples:
|className|jobName|
|null|notExist|
@@ -0,0 +1,39 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
Feature: COB Initialisation Step
@cob
Scenario Outline: InitialisationTasklet - run test
Given The InitialisationTasklet.execute method with action <action>
When InitialisationTasklet.execute method executed
Then InitialisationTasklet.execute result should match
Examples:
|action|
|good|
@cob
Scenario Outline: InitialisationTasklet - run test: exception
Given The InitialisationTasklet.execute method with action <action>
Then throw exception InitialisationTasklet.execute method
Examples:
|action|
|error|
@@ -0,0 +1,50 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
Feature: COB Loan item Listener
@cob
Scenario Outline: LoanItemListener.onReadError - run test
Given The LoanItemListener.onReadError method <action>
When LoanItemListener.onReadError method executed
Then LoanItemListener.onReadError result should match
Examples:
|action|
|run |
@cob
Scenario Outline: LoanItemListener.onProcessError - run test
Given The LoanItemListener.onProcessError method <action>
When LoanItemListener.onProcessError method executed
Then LoanItemListener.onProcessError result should match
Examples:
|action|
|run |
@cob
Scenario Outline: LoanItemListener.onWriteError - run test
Given The LoanItemListener.onWriteError method <action>
When LoanItemListener.onWriteError method executed
Then LoanItemListener.onWriteError result should match
Examples:
|action|
|run |
@@ -0,0 +1,39 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
Feature: COB Apply Loan Lock Step
@cob
Scenario Outline: ApplyLoanLockTasklet - run test
Given The ApplyLoanLockTasklet.execute method with action <action>
When ApplyLoanLockTasklet.execute method executed
Then ApplyLoanLockTasklet.execute result should match
Examples:
|action|
|good|
@cob
Scenario Outline: ApplyLoanLockTasklet - run test: exception
Given The ApplyLoanLockTasklet.execute method with action <action>
Then throw exception ApplyLoanLockTasklet.execute method
Examples:
|action|
|error|
@@ -0,0 +1,39 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
Feature: COB Process
@cob
Scenario Outline: LoanItemProcessor - run test
Given The LoanItemProcessor.process method with item <item>
When LoanItemProcessor.process method executed
Then LoanItemProcessor.process result should match
Examples:
|item|
|1 |
@cob
Scenario Outline: LoanItemProcessor - run test: exception
Given The LoanItemProcessor.process method with item <item>
Then throw exception LoanItemProcessor.process method
Examples:
|item|
||
@@ -0,0 +1,52 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
Feature: COB Reader
@cob
Scenario Outline: LoanItemReader - run test
Given The LoanItemReader.read method with loanIds <loanIds>, lockedAccounts <lockedAccounts>
When LoanItemReader.read method executed
Then The LoanItemReader.read result should match
Examples:
|loanIds|lockedAccounts|
|1 | |
|1,2 |3,4 |
@cob
Scenario Outline: LoanItemReader - run test: null
Given The LoanItemReader.read method with loanIds <loanIds>, lockedAccounts <lockedAccounts>
When LoanItemReader.read method executed
Then The LoanItemReader.read result null
Examples:
|loanIds|lockedAccounts|
| | |
@cob
Scenario Outline: LoanItemReader - run test: exception
Given The LoanItemReader.read method with loanIds <loanIds>, lockedAccounts <lockedAccounts>
Then throw exception LoanItemReader.read method
Examples:
|loanIds|lockedAccounts|
|-1 | |
|1 | 1 |
|0 | |
@@ -0,0 +1,39 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
Feature: COB Writer
@cob
Scenario Outline: LoanItemWriter - run test
Given The LoanItemWriter.write method with action <action>
When LoanItemWriter.write method executed
Then LoanItemWriter.write result should match
Examples:
|action|
|good|
@cob
Scenario Outline: LoanItemWriter - run test: exception
Given The LoanItemWriter.write method with action <action>
Then throw exception LoanItemWriter.write method
Examples:
|action|
|error|
@@ -0,0 +1,40 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
Feature: COB Loan partitioner Step
@cob
Scenario Outline: LoanCOBPartitioner - run test
Given The LoanCOBPartitioner.partition method with action <action>
When LoanCOBPartitioner.partition method executed
Then LoanCOBPartitioner.partition result should match
Examples:
|action|
|empty steps|
|good|
@cob
Scenario Outline: LoanCOBPartitioner - run test: exception
Given The LoanCOBPartitioner.partition method with action <action>
Then throw exception LoanCOBPartitioner.partition method
Examples:
|action|
|empty loanIds|