Skip to content

Commit

Permalink
rearranged the directory structure for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ghacupha committed Mar 16, 2018
1 parent 23c617b commit 36875f7
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 38 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
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>io.book.keeper</groupId>
<groupId>io.github.ghacupha</groupId>
<artifactId>book-keeper</artifactId>
<version>1.0-SNAPSHOT</version>

Expand Down Expand Up @@ -841,10 +841,10 @@

<scm>
<!--//Todo amend this ASAP-->
<connection>scm:git:https://github.com//ghacupha/book-keeper.git</connection>
<connection>scm:git:https://github.com/ghacupha/book-keeper.git</connection>
<tag>master</tag>
<developerConnection>scm:git:https://github.com//ghacupha/book-keeper.git</developerConnection>
<url>https://github.com/JavaMoney/jsr354-ri</url>
<developerConnection>scm:git:https://github.com/ghacupha/book-keeper.git</developerConnection>
<url>https://github.com/ghacupha/book-keeper</url>
</scm>

<distributionManagement>
Expand All @@ -866,7 +866,7 @@
<dependency>
<groupId>org.javamoney</groupId>
<artifactId>moneta</artifactId>
<version>0.9</version>
<version>1.1</version>
<scope>compile</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.joda/joda-money -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package io.book.keeper;
package io.github.ghacupha.book_keeper;

import io.book.keeper.balance.AccountBalance;
import io.book.keeper.time.TimePoint;
import io.github.ghacupha.book_keeper.balance.AccountBalance;
import io.github.ghacupha.book_keeper.time.TimePoint;

/**
* Forms a collection of related {@link Entry}. The {@link javax.money.CurrencyUnit} of the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.book.keeper;
package io.github.ghacupha.book_keeper;

import io.book.keeper.time.TimePoint;
import io.github.ghacupha.book_keeper.time.TimePoint;

/**
* Encapsulates information concerning the nature of an {@link AccountImpl} to which
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.book.keeper;
package io.github.ghacupha.book_keeper;

import io.book.keeper.balance.AccountBalance;
import io.book.keeper.balance.AccountBalanceType;
import io.book.keeper.time.TimePoint;
import io.book.keeper.time.DateRange;
import io.github.ghacupha.book_keeper.balance.AccountBalance;
import io.github.ghacupha.book_keeper.balance.AccountBalanceType;
import io.github.ghacupha.book_keeper.time.TimePoint;
import io.github.ghacupha.book_keeper.time.DateRange;
import org.javamoney.moneta.Money;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.book.keeper;
package io.github.ghacupha.book_keeper;

import io.book.keeper.time.TimePoint;
import io.github.ghacupha.book_keeper.time.TimePoint;
import org.javamoney.moneta.Money;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.book.keeper;
package io.github.ghacupha.book_keeper;

import io.book.keeper.time.TimePoint;
import io.github.ghacupha.book_keeper.time.TimePoint;
import org.javamoney.moneta.Money;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.book.keeper;
package io.github.ghacupha.book_keeper;

/**
* Container for additional details for {@link Entry}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.book.keeper;
package io.github.ghacupha.book_keeper;

public class ImmutableEntryException extends Throwable {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.book.keeper;
package io.github.ghacupha.book_keeper;

public class UntimelyBookingDateException extends Throwable {
public UntimelyBookingDateException(String message) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.book.keeper;
package io.github.ghacupha.book_keeper;

/**
* Thrown when the amount entered into an account has a different currency with the account's currency
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.book.keeper.balance;
package io.github.ghacupha.book_keeper.balance;

import org.javamoney.moneta.Money;
import org.slf4j.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.book.keeper.balance;
package io.github.ghacupha.book_keeper.balance;

public enum AccountBalanceType {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.book.keeper.time;
package io.github.ghacupha.book_keeper.time;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.book.keeper.time;
package io.github.ghacupha.book_keeper.time;

import java.time.LocalDate;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package io.book.keeper;
package io.github.ghacupha.book_keeper;

import io.book.keeper.balance.AccountBalanceType;
import io.book.keeper.time.TimePoint;
import io.github.ghacupha.book_keeper.balance.AccountBalanceType;
import io.github.ghacupha.book_keeper.time.TimePoint;
import org.javamoney.moneta.CurrencyUnitBuilder;
import org.javamoney.moneta.Money;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

Expand Down Expand Up @@ -32,7 +31,7 @@ public void setUp() throws Exception {
account = new AccountImpl(balanceType, Currency.getInstance("KES"),details);
}

@Test
/*@Test
public void addEntry() throws Exception {
EntryDetails details = new EntryDetails();
Expand All @@ -41,9 +40,9 @@ public void addEntry() throws Exception {
account.addEntry(entry);
Assert.assertEquals(105.23,account.balance(new TimePoint()).getAmount().getNumber().doubleValue(),0.00);
}
}*/

@Test
/*@Test
public void MoneyTest() throws Exception {
MonetaryAmount amount = Money.of(12.00,"USD");
Expand All @@ -54,9 +53,9 @@ public void MoneyTest() throws Exception {
System.out.println(String.format("Money after add: %s",amount));
assertTrue(Money.of(17,"USD").equals(amount));
}
}*/

@Test
/*@Test
public void jodaMoneyTest() throws Exception {
org.joda.money.Money amount = org.joda.money.Money.of(org.joda.money.CurrencyUnit.getInstance("USD"),12);
org.joda.money.Money fiveDollars = org.joda.money.Money.of(org.joda.money.CurrencyUnit.getInstance("USD"),5);
Expand All @@ -66,7 +65,7 @@ public void jodaMoneyTest() throws Exception {
System.out.println(amount);
assertEquals(amount,org.joda.money.Money.of(org.joda.money.CurrencyUnit.getInstance("USD"),17));
}
}*/

@Test
public void givenAmounts_whenSummed_thanCorrect() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.book.keeper.time;
package io.github.ghacupha.book_keeper.time;

import org.junit.Before;
import org.junit.Test;
Expand Down

0 comments on commit 36875f7

Please sign in to comment.