Skip to content

Commit

Permalink
Merge pull request nus-cs2103-AY2324S1#95 from jianrong7/trial-jar-re…
Browse files Browse the repository at this point in the history
…lease
  • Loading branch information
jianrong7 authored Oct 26, 2023
2 parents 7e7766d + 548ece3 commit 29db7ee
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 27 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ dependencies {
}

shadowJar {
archiveFileName = 'addressbook.jar'
archiveFileName = 'propertymatch.jar'
}

run {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
*/
public class MainApp extends Application {

public static final Version VERSION = new Version(0, 2, 2, true);
public static final Version VERSION = new Version(1, 2, 1, true);

private static final Logger logger = LogsCenter.getLogger(MainApp.class);

Expand Down Expand Up @@ -88,7 +88,7 @@ private Model initModelManager(Storage storage, ReadOnlyUserPrefs userPrefs) {
addressBookOptional = storage.readAddressBook();
if (!addressBookOptional.isPresent()) {
logger.info("Creating a new data file " + storage.getAddressBookFilePath()
+ " populated with a sample PropertyMatch.");
+ " populated with a sample AddressBook.");
}
initialData = addressBookOptional.orElseGet(SampleDataUtil::getSampleAddressBook);
} catch (DataLoadingException e) {
Expand Down
45 changes: 23 additions & 22 deletions src/main/java/seedu/address/model/util/SampleDataUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,30 @@ public static Customer[] getSampleCustomers() {
getTagSet("small")),
new Customer(new Name("Roy Balakrishnan"), new Phone("92624417"), new Email("[email protected]"),
new Budget("200000"),
getTagSet("city-center"))
getTagSet("city", "center"))
};
}

public static Property[] getSampleProperties() {
return new Property[] {
new Property(new PropName("Alex Yeoh"), new PropAddress("Blk 30 Geylang Street 29, #06-40"),
new PropPhone("87438807"), new Price("10101010"),
getTagSet("friends")),
new Property(new PropName("Bernice Yu"), new PropAddress("Blk 30 Lorong 3 Serangoon Gardens, #07-18"),
new PropPhone("87438808"), new Price("2504830"),
getTagSet("friends")),
new Property(new PropName("Charlotte Oliveiro"), new PropAddress("Blk 11 Ang Mo Kio Street 74, #11-04"),
new PropPhone("87438809"), new Price("36817468"),
getTagSet("friends")),
new Property(new PropName("David Li"), new PropAddress("Blk 436 Serangoon Gardens Street 26, #16-43"),
new PropPhone("87438810"), new Price("81648137"),
getTagSet("friends")),
new Property(new PropName("Irfan Ibrahim"), new PropAddress("Blk 47 Tampines Street 20, #17-35"),
new PropPhone("87438811"), new Price("8276464"),
getTagSet("friends")),
new Property(new PropName("Roy Balakrishnan"), new PropAddress("Blk 45 Aljunied Street 85, #11-31"),
new PropPhone("87438812"), new Price("42846276"),
getTagSet("friends"))
new Property(new PropName("Aquavista"), new PropAddress("123 Orchid Lane, Singapore 456789"),
new PropPhone("94351253"), new Price("123456"),
getTagSet("pink")),
new Property(new PropName("Skyvista"), new PropAddress("456 Sapphire Avenue, Singapore 987654"),
new PropPhone("98765432"), new Price("8880000"),
getTagSet("square", "garden")),
new Property(new PropName("Horizonview"), new PropAddress("789 Palm Grove Road, Singapore 321012"),
new PropPhone("95352563"), new Price("400000"),
getTagSet()),
new Property(new PropName("Luxeloft"), new PropAddress("234 Amber Crescent, Singapore 567890"),
new PropPhone("87652533"), new Price("100000"),
getTagSet("garage")),
new Property(new PropName("Riveria"), new PropAddress("567 Maple Lane, Singapore 109876"),
new PropPhone("9482224"), new Price("4000000"),
getTagSet()),
new Property(new PropName("Azure"), new PropAddress("202 Shoreline Street, Singapore 654321"),
new PropPhone("9482442"), new Price("321950"),
getTagSet())
};
}

Expand All @@ -79,11 +79,12 @@ public static ReadOnlyAddressBook getSampleAddressBook() {
}

public static ReadOnlyPropertyBook getSamplePropertyBook() {
PropertyBook sampleAb = new PropertyBook();
PropertyBook samplePb = new PropertyBook();
for (Property sampleProperty : getSampleProperties()) {
sampleAb.addProperty(sampleProperty);
System.out.println(sampleProperty);
samplePb.addProperty(sampleProperty);
}
return sampleAb;
return samplePb;
}
/**
* Returns a tag set containing the list of strings given.
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/seedu/address/testutil/TypicalProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public class TypicalProperties {
.withAddress("456 Sapphire Avenue, Singapore 987654").withPhone("98765432")
.withTags("square", "garden").build();
public static final Property HORIZONVIEW = new PropertyBuilder().withName("Horizonview").withPhone("95352563")
.withAddress("789 Palm Grove Road, Singapore 321012").withPrice("40000").build();
.withAddress("789 Palm Grove Road, Singapore 321012").withPrice("400000").build();
public static final Property LUXELOFT = new PropertyBuilder().withName("Luxeloft").withPhone("87652533")
.withAddress("234 Amber Crescent, Singapore 567890").withPrice("10000").withTags("garage").build();
.withAddress("234 Amber Crescent, Singapore 567890").withPrice("100000").withTags("garage").build();
public static final Property RIVERIA = new PropertyBuilder().withName("Riveria").withPhone("9482224")
.withAddress("567 Maple Lane, Singapore 109876").withPrice("4000000").build();
public static final Property AZURE = new PropertyBuilder().withName("Azure").withPhone("9482427")
Expand Down

0 comments on commit 29db7ee

Please sign in to comment.