-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FileStore tests.
- Loading branch information
Showing
36 changed files
with
1,156 additions
and
339 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
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
62 changes: 62 additions & 0 deletions
62
xwiki-android-core/src/org/xwiki/android/data/fileStore/FileStoreException.java
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,62 @@ | ||
package org.xwiki.android.data.fileStore; | ||
|
||
public class FileStoreException extends RuntimeException | ||
{ | ||
|
||
public FileStoreException() | ||
{ | ||
super(); | ||
} | ||
|
||
public FileStoreException(String detailMessage, Throwable throwable) | ||
{ | ||
super(detailMessage, throwable); | ||
} | ||
|
||
public FileStoreException(String detailMessage) | ||
{ | ||
super(detailMessage); | ||
} | ||
|
||
|
||
|
||
public static class DuplicateKey extends FileStoreException | ||
{ | ||
|
||
public DuplicateKey() | ||
{ | ||
super(); | ||
} | ||
|
||
public DuplicateKey(String detailMessage, Throwable throwable) | ||
{ | ||
super(detailMessage, throwable); | ||
} | ||
|
||
public DuplicateKey(String detailMessage) | ||
{ | ||
super(detailMessage); | ||
} | ||
} | ||
|
||
public static class UnsupportedOperation extends FileStoreException{ | ||
|
||
public UnsupportedOperation() | ||
{ | ||
super(); | ||
} | ||
|
||
public UnsupportedOperation(String detailMessage, Throwable throwable) | ||
{ | ||
super(detailMessage, throwable); | ||
} | ||
|
||
public UnsupportedOperation(String detailMessage) | ||
{ | ||
super(detailMessage); | ||
} | ||
|
||
|
||
} | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
xwiki-android-core/src/org/xwiki/android/data/fileStore/README
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,7 @@ | ||
This is intended to be lightweight mimic of a document oriented Database. | ||
|
||
Issues: | ||
The File Store needs more specification. | ||
Suggest | ||
key= wikiName, spaceName, pageName, localVersin(new field) | ||
What if user connects to 2 XWiki servers with same coordintates as above but 2 different Xwikis? |
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
Oops, something went wrong.