Skip to content

Commit

Permalink
PLZ added
Browse files Browse the repository at this point in the history
  • Loading branch information
oboehm committed Apr 10, 2017
1 parent 2e98a6f commit cf67922
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/main/java/de/jfachwert/post/PLZ.java
@@ -0,0 +1,39 @@
/*
* Copyright (c) 2017 by Oliver Boehm
*
* Licensed 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.
*
* (c)reated 21.02.2017 by oboehm (ob@oasd.de)
*/
package de.jfachwert.post;

import de.jfachwert.AbstractFachwert;

/**
* Klasse PLZ.
*
* @author oboehm
* @since x.x (10.04.2017)
*/
public class PLZ extends AbstractFachwert<String> {

/**
* Hierueber wird eine Postleitzahl angelegt.
*
* @param plz z.B. "70839" oder "D-70839"
*/
public PLZ(String plz) {
super(plz);
}

}
26 changes: 26 additions & 0 deletions src/main/java/de/jfachwert/post/package-info.java
@@ -0,0 +1,26 @@
/*
* Copyright (c) 2017 by Oliver Boehm
*
* Licensed 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.
*
* (c)reated 21.02.2017 by oboehm (ob@oasd.de)
*/

/**
* Dieses Paket ist fuer Klassen rund um die Post wie PLZ (Postleitzahl), Ort
* Adresse oder Anschrift vorgesehen.
*
* @author <a href="ob@aosd.de">oliver</a>
* @since 0.2.0
*/
package de.jfachwert.post;
39 changes: 39 additions & 0 deletions src/test/java/de/jfachwert/post/PLZTest.java
@@ -0,0 +1,39 @@
package de.jfachwert.post;/*
* Copyright (c) 2017 by Oliver Boehm
*
* Licensed 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.
*
* (c)reated 21.02.2017 by oboehm (ob@oasd.de)
*/

import de.jfachwert.AbstractFachwertTest;
import de.jfachwert.Fachwert;

/**
* Unit-Teests fuer de.jfachwert.post.PLZ.
*
* @author oboehm
*/
public class PLZTest extends AbstractFachwertTest {

/**
* Zum Testen brauchen wird die Postleitzahl von Gerlingen verwendet.
*
* @return PLZ von Gerlingen
*/
@Override
protected Fachwert createFachwert() {
return new PLZ("D-70839");
}

}

0 comments on commit cf67922

Please sign in to comment.