account-srvice http://jira.mfd.msk:8088/browse/CLS-265 http://jira.mfd.msk:8088/browse/CLS-333 Info-account - поправил инкремент
This commit is contained in:
parent
5aa1de8b18
commit
c7f1b490ed
2 changed files with 3 additions and 3 deletions
|
|
@ -351,7 +351,7 @@ public class InformationAccountService extends QueueConsumer implements Initiali
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return infoCounter.getAndIncrement();
|
return infoCounter.incrementAndGet();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -202,8 +202,8 @@ class InformationAccountServiceTest {
|
||||||
InformationAccountService infoAccSvc=new InformationAccountService(null,null,null,
|
InformationAccountService infoAccSvc=new InformationAccountService(null,null,null,
|
||||||
null, imdgProvider, null, null, null, null);
|
null, imdgProvider, null, null, null, null);
|
||||||
Long n = infoAccSvc.accountNextId();
|
Long n = infoAccSvc.accountNextId();
|
||||||
Assertions.assertEquals(12L, n);
|
|
||||||
n = infoAccSvc.accountNextId();
|
|
||||||
Assertions.assertEquals(13L, n);
|
Assertions.assertEquals(13L, n);
|
||||||
|
n = infoAccSvc.accountNextId();
|
||||||
|
Assertions.assertEquals(14L, n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Reference in a new issue