Package no.kommune.bergen.soa.svarut.domain

Examples of no.kommune.bergen.soa.svarut.domain.Orgnr


public class OrgnrTest {

  @Test
  public void createOrgOk() {
    String orgnr = "123456789";
    Assert.assertEquals( orgnr, new Orgnr( orgnr ).toString() );
  }
View Full Code Here


  }

  @Test(expected = java.lang.IllegalArgumentException.class)
  public void createOrgFail() {
    String orgnr = "1234567";
    Assert.assertEquals( orgnr, new Orgnr( orgnr ).toString() );
  }
View Full Code Here

    validateForsendelse( f, variant );
  }

  @Test
  public void saveThenRetrieveSeveralOrg() {
    saveThenRetrieveSeveral( new Orgnr( orgnr ) );
  }
View Full Code Here

  @Test(expected = AccessControlException.class)
  public void authorizeOrgnrFail() {
    Forsendelse f = createForsendelse( 1 );
    String id = forsendelsesArkiv.save( f, getTestDocument() );
    forsendelsesArkiv.authorize( id, new Orgnr( "000000000" ) );
  }
View Full Code Here

    return retrieveForJuridiskEnhet( new Fodselsnr( fnr ) );
  }

  @Override
  public List<ForsendelseStatus> retrieveForOrgenhet( @WebParam(name = "userContext") UserContext userContext, @WebParam(name = "orgnr") String orgnr ) {
    return retrieveForJuridiskEnhet( new Orgnr( orgnr ) );
  }
View Full Code Here

  private JuridiskEnhetFactory() {}

  public static JuridiskEnhet create( String value ) {
    if (value == null) return new IngenJuridiskEnhet();
    if (value.length() == 11) return new Fodselsnr( value );
    if (value.length() == 9) return new Orgnr( value );
    return new IngenJuridiskEnhet();
  }
View Full Code Here

TOP

Related Classes of no.kommune.bergen.soa.svarut.domain.Orgnr

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.