Skip to content
Browse files

Added package entity and DTO

  • Loading branch information...
1 parent 0030507 commit 2fd014257d56af421eeb022f6ef1e26c8de64054 @williewheeler committed Jul 8, 2012
View
27 api/src/main/java/org/zkybase/cmdb/api/domain/PackageEntity.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2011-2012 the original author or authors.
+ *
+ * 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.
+ */
+package org.zkybase.cmdb.api.domain;
+
+/**
+ * @author Willie Wheeler (willie.wheeler@gmail.com)
+ */
+public class PackageEntity extends AbstractEntity {
+ private String version;
+
+ public String getVersion() { return version; }
+
+ public void setVersion(String version) { this.version = version; }
+}
View
21 api/src/test/java/org/zkybase/cmdb/api/domain/PackageEntityTestCase.java
@@ -0,0 +1,21 @@
+/*
+ * Copyright 2011-2012 the original author or authors.
+ *
+ * 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.
+ */
+package org.zkybase.cmdb.api.domain;
+
+/**
+ * @author Willie Wheeler (willie.wheeler@gmail.com)
+ */
+public class PackageEntityTestCase extends AbstractEntityTestCase<PackageEntity> { }
View
27 dto/src/main/java/org/zkybase/cmdb/dto/Package.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2011-2012 the original author or authors.
+ *
+ * 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.
+ */
+package org.zkybase.cmdb.dto;
+
+/**
+ * @author Willie Wheeler (willie.wheeler@gmail.com)
+ */
+public class Package extends AbstractDto {
+ private String version;
+
+ public String getVersion() { return version; }
+
+ public void setVersion(String version) { this.version = version; }
+}
View
23 dto/src/test/java/org/zkybase/cmdb/dto/PackageTestCase.java
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2011-2012 the original author or authors.
+ *
+ * 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.
+ */
+package org.zkybase.cmdb.dto;
+
+import org.zkybase.cmdb.test.AbstractBeanTestCase;
+
+/**
+ * @author Willie Wheeler (willie.wheeler@gmail.com)
+ */
+public class PackageTestCase extends AbstractBeanTestCase<Package> { }

0 comments on commit 2fd0142

Please sign in to comment.
Something went wrong with that request. Please try again.