@Test(expected = IllegalArgumentException.class) @RunWithCustomExecutor public void testError() throws Exception { VitamThreadUtils.getVitamSession().setTenantId(TENANT_ID); String ic = vitamCounterService.getNextSequenceAsString(TENANT_ID, SequenceType.valueOf("ABB")); }
public String getNextSequenceAsString(Integer tenant, SequenceType sequenceType) throws ReferentialException { Integer sequence = getNextSequence(tenant, sequenceType); return sequenceType.getName() + "-" + String.format("%06d", sequence); }
VitamCounterService { public String getNextSequenceAsString(Integer tenant, SequenceType sequenceType) throws ReferentialException { Integer sequence = getNextSequence(tenant, sequenceType); return sequenceType.getName() + "-" + String.format("%06d", sequence); } }
VitamCounterService { public String getNextSequenceAsString(Integer tenant, SequenceType sequenceType) throws ReferentialException { Integer sequence = getNextSequence(tenant, sequenceType); return sequenceType.getName() + "-" + String.format("%06d", sequence); } VitamCounterService(MongoDbAccessAdminImpl dbConfiguration, List<Integer> tenants,
        Map<Integer, List<String>> externalIdentifiers); }
VitamCounterService { public String getNextSequenceAsString(Integer tenant, SequenceType sequenceType) throws ReferentialException { Integer sequence = getNextSequence(tenant, sequenceType); return sequenceType.getName() + "-" + String.format("%06d", sequence); } VitamCounterService(MongoDbAccessAdminImpl dbConfiguration, List<Integer> tenants,
        Map<Integer, List<String>> externalIdentifiers); String getNextSequenceAsString(Integer tenant, SequenceType sequenceType); Integer getNextSequence(Integer tenant, SequenceType sequenceType); VitamSequence getNextBackupSequenceDocument(Integer tenant, SequenceType sequenceType); Integer getSequence(Integer tenant, SequenceType sequenceType); VitamSequence getSequenceDocument(Integer tenant, SequenceType sequenceType); boolean isSlaveFunctionnalCollectionOnTenant(FunctionalAdminCollections collection, Integer tenant); }
VitamCounterService { public String getNextSequenceAsString(Integer tenant, SequenceType sequenceType) throws ReferentialException { Integer sequence = getNextSequence(tenant, sequenceType); return sequenceType.getName() + "-" + String.format("%06d", sequence); } VitamCounterService(MongoDbAccessAdminImpl dbConfiguration, List<Integer> tenants,
        Map<Integer, List<String>> externalIdentifiers); String getNextSequenceAsString(Integer tenant, SequenceType sequenceType); Integer getNextSequence(Integer tenant, SequenceType sequenceType); VitamSequence getNextBackupSequenceDocument(Integer tenant, SequenceType sequenceType); Integer getSequence(Integer tenant, SequenceType sequenceType); VitamSequence getSequenceDocument(Integer tenant, SequenceType sequenceType); boolean isSlaveFunctionnalCollectionOnTenant(FunctionalAdminCollections collection, Integer tenant);  }