apache / examples Goto Github PK
View Code? Open in Web Editor NEWApache Fluo Examples
Home Page: https://fluo.apache.org
License: Apache License 2.0
Apache Fluo Examples
Home Page: https://fluo.apache.org
License: Apache License 2.0
Create links and descriptions to example projects
Findbugs and ITs were disabled in #14 to get the basic build to work. These should be re-enabled once the issues preventing them from working are solved.
webindex.data.fluo.PageLoader does not check for null inputs. When dereferencing the object to see if it is empty it doesn't first check to make sure the object exists. I wrote a simple test to show this below.
This is line 45 - 50 that shows why it happens
public static PageLoader updatePage(Page page) {
Preconditions.checkArgument(!page.isEmpty(), "Page cannot be empty");
PageLoader update = new PageLoader();
update.action = Action.UPDATE;
update.page = page;
return update;
}
package webindex.fluo;
import org.junit.Test;
import webindex.core.models.Page;
import webindex.data.fluo.PageLoader;
public class PageLoaderTest {
@Test
public void testNullPage() {
Page p = null;
PageLoader loader = PageLoader.updatePage(p);
}
@Test(expected = IllegalArgumentException.class)
public void testEmptyPageThrowsIllegalArgument() {
Page p = Page.EMPTY;
PageLoader loader = PageLoader.updatePage(p);
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.