Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dulanism committed Nov 15, 2016
1 parent ded6e24 commit 89578ca
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Eclipse
.classpath
.project
.settings/

# Intellij
.idea/
*.iml
*.iws

# Mac
.DS_Store

# Maven
log/
target/
32 changes: 32 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.dulani.wallace</groupId>
<artifactId>test</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>DulaniWallace</name>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>

<distributionManagement>
<repository>
<id>maven-releases</id>
<url>http://localhost:7777/repository/maven-releases/</url>
</repository>
<snapshotRepository>
<id>maven-snapshots</id>
<url>http://localhost:7777/repository/maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
</project>
25 changes: 25 additions & 0 deletions src/main/java/org/dulani/wallace/app.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package org.dulani.wallace;

import java.util.UUID;

/**
* Created by dulaniwallace on 11/9/16.
*/

// This is a class, becomes something like org.dulani.wallace.app
public class app {
// This is a method, becomes publicaly available if you import the class
public static void main ( String[] args ) {
// Instantiates an object of app for me to use, so I can call generateUniqueKey
app obj = new app();

System.out.println("How many job do you have, mon?: " + obj.generateUniqueKey());
}

public String generateUniqueKey() {
String id = UUID.randomUUID().toString();
String dulani = "Dulani";
String jeffry = "Jeffry";
return dulani + " and " + jeffry + " random bullshit " + id;
}
}
16 changes: 16 additions & 0 deletions src/test/java/org/dulani/wallace/Testapp.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.dulani.wallace;

import org.junit.Assert;
import org.junit.Test;

/**
* Created by dulaniwallace on 11/9/16.
*/
public class Testapp {
@Test
public void testLengthOfTheUniqueKey() {
app obj = new app();

Assert.assertEquals(70, obj.generateUniqueKey().length());
}
}

0 comments on commit 89578ca

Please sign in to comment.