-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
} |