input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
model_3 ( ) { org . apache . jena . rdf . model . Model assem = org . apache . jena . util . FileManager . get ( ) . loadModel ( ( ( org . apache . jena . sdb . test . misc . TestAssembler . dir ) + "graph-assembler.ttl" ) ) ; org . apache . jena . rdf . model . Resource xDft = assem . getResource ( "http://example/tes...
org . junit . Assert . assertNotNull ( ( model1 != model2 ) )
sumEvenFibonacciTest ( ) { sio2box . it . testclasses . BenchmarkTestClass benchmarkTestClass = new sio2box . it . testclasses . BenchmarkTestClass ( ) ; benchmarkTestClass . sumEvenFibonacci ( ) ; "<AssertPlaceHolder>" ; } getBytes ( ) { return sio2box . api . ThreadTrackingContext . getThreadContext ( ) . getBytesUse...
org . junit . Assert . assertEquals ( 0 , sio2box . api . ThreadTrackingContext . getBytes ( ) )
testNodeNum ( ) { cn . alfred . util . TreeNode < java . lang . Integer > root = new cn . alfred . util . TreeNode ( 2 ) ; root . setLeft ( new cn . alfred . util . TreeNode < java . lang . Integer > ( 1 ) ) ; root . setRight ( new cn . alfred . util . TreeNode < java . lang . Integer > ( 3 ) ) ; int number = new cn . ...
org . junit . Assert . assertEquals ( 3 , number )
isDestroyedWhenWithZeroHitPointsOrLower ( ) { hitPointBasedDestructibility . reduce ( com . fundynamic . d2tm . game . behaviors . HitPointBasedDestructibilityTest . MAX_HIT_POINTS ) ; "<AssertPlaceHolder>" ; } isZero ( ) { return ( ( getXAsInt ( ) ) == 0 ) && ( ( getYAsInt ( ) ) == 0 ) ; }
org . junit . Assert . assertTrue ( hitPointBasedDestructibility . isZero ( ) )
testHasRelatedQueriesSuggestionsFalseByDefault ( ) { com . liferay . portal . search . web . internal . suggestions . display . context . SuggestionsPortletDisplayContext suggestionsPortletDisplayContext = _displayBuilder . build ( ) ; "<AssertPlaceHolder>" ; } hasRelatedQueriesSuggestions ( ) { return _hasRelatedQueri...
org . junit . Assert . assertFalse ( suggestionsPortletDisplayContext . hasRelatedQueriesSuggestions ( ) )
shouldDeserialiseFromJsonWhenDirectedTypeIsDirected ( ) { final java . lang . String json = "{\"class\":<sp>\"uk.gov.gchq.gaffer.data.element.Edge\",<sp>\"directedType\":<sp>\"DIRECTED\"}" ; final uk . gov . gchq . gaffer . data . element . Edge deserialisedEdge = uk . gov . gchq . gaffer . jsonserialisation . JSONSeri...
org . junit . Assert . assertTrue ( deserialisedEdge . isDirected ( ) )
testRequestWithoutAuthorization ( ) { javax . servlet . http . HttpServletRequest request = org . mockito . Mockito . mock ( javax . servlet . http . HttpServletRequest . class ) ; javax . servlet . http . HttpServletResponse response = org . mockito . Mockito . mock ( javax . servlet . http . HttpServletResponse . cla...
org . junit . Assert . assertNull ( handler . authenticate ( request , response ) )
testGetTotalNumberOfRecords ( ) { org . apache . hadoop . conf . Configuration conf = buildConfiguration ( ) ; org . apache . hive . storage . jdbc . dao . DatabaseAccessor accessor = org . apache . hive . storage . jdbc . dao . DatabaseAccessorFactory . getAccessor ( conf ) ; int numRecords = accessor . getTotalNumber...
org . junit . Assert . assertThat ( numRecords , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( 5 ) ) )
matchesCannotBeDeletedWithNoMatchingMessage ( ) { matcher = new com . wounit . matchers . CanBeDeletedMatcher < com . webobjects . eocontrol . EOEnterpriseObject > ( "another<sp>error" ) ; org . mockito . Mockito . doThrow ( new com . webobjects . foundation . NSValidation . ValidationException ( "error" ) ) . when ( m...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( true ) )
formatatomacceptXML ( ) { com . fujitsu . dc . core . rs . odata . ODataEntityResource odataEntityResource = new com . fujitsu . dc . core . rs . odata . ODataEntityResource ( ) ; javax . ws . rs . core . MediaType type = odataEntityResource . decideOutputFormat ( null , "atom" ) ; "<AssertPlaceHolder>" ; } decideOutpu...
org . junit . Assert . assertEquals ( MediaType . APPLICATION_ATOM_XML_TYPE , type )
fromString ( ) { final java . lang . String bindingSetString = "http://b<<~>>http://www.w3.org/2001/XMLSchema#anyURI:::" + ( "http://c<<~>>http://www.w3.org/2001/XMLSchema#anyURI:::" + "http://a<<~>>http://www.w3.org/2001/XMLSchema#anyURI" ) ; final org . apache . rya . indexing . pcj . storage . accumulo . VariableOrd...
org . junit . Assert . assertEquals ( expected , bindingSet )
shouldLock ( ) { final org . talend . dataprep . lock . LockFactory delegate = mock ( org . talend . dataprep . lock . LockFactory . class ) ; final org . talend . dataprep . lock . DistributedLock mock = mock ( org . talend . dataprep . lock . DistributedLock . class ) ; when ( mock . getKey ( ) ) . thenReturn ( "1234...
org . junit . Assert . assertEquals ( 1 , watcher . getLocks ( ) . size ( ) )
getMatchingLinesOfTextShouldFindCorrectLinesWhenBetweenOtherLines ( ) { final java . util . List < net . usikkert . kouchat . android . util . Line > lines = net . usikkert . kouchat . android . util . RobotiumTestUtils . getMatchingLinesOfText ( "something<sp>http://kouchat.googlecode.com<sp>here" , java . util . Arra...
org . junit . Assert . assertEquals ( 3 , lines . size ( ) )
testEmptyConstructor ( ) { org . eurekastreams . commons . exceptions . PrincipalPopulationException sut = new org . eurekastreams . commons . exceptions . PrincipalPopulationException ( ) ; "<AssertPlaceHolder>" ; } getMessage ( ) { return message ; }
org . junit . Assert . assertNull ( sut . getMessage ( ) )
testGate ( ) { it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . objectsOfGame . Gate g = new it . polimi . deib . provaFinale2014 . andrea . celli_stefano1 . cereda . gameModel . objectsOfGame . Gate ( true , null ) ; g . setID ( ) ; "<AssertPlaceHolder>" ; } setID ( ) { id = ( it ....
org . junit . Assert . assertNotNull ( g )
testNullMultiCondCaseStatement ( ) { java . lang . String query = "SELECT<sp>CASE<sp>WHEN<sp>entity_id<sp>=<sp>'000000000000000'<sp>THEN<sp>1<sp>WHEN<sp>entity_id<sp>=<sp>'000000000000001'<sp>THEN<sp>2<sp>END<sp>FROM<sp>ATABLE<sp>WHERE<sp>organization_id=?" ; java . lang . String url = ( ( ( ( PHOENIX_JDBC_URL ) + ";" ...
org . junit . Assert . assertEquals ( ResultSetMetaData . columnNullable , rsm . isNullable ( 1 ) )
experimentSaveModelTest ( ) { builder . experiment ( ExperimentType . SAVE_MODEL , "saveModel" ) ; "<AssertPlaceHolder>" ; } toString ( ) { return name ; }
org . junit . Assert . assertEquals ( builder . type . toString ( ) , ExperimentType . SAVE_MODEL . toString ( ) )
testDeployVirtualMachineUsingARMTemplate ( ) { "<AssertPlaceHolder>" ; } runSample ( com . microsoft . azure . management . Azure ) { final java . lang . String rgName = com . microsoft . azure . management . resources . fluentcore . utils . SdkContext . randomResourceName ( "rgRSAT" , 24 ) ; final java . lang . String...
org . junit . Assert . assertTrue ( com . microsoft . azure . management . resources . samples . DeployVirtualMachineUsingARMTemplate . runSample ( azure ) )
testMagic ( ) { io . jafka . message . Message m = new io . jafka . message . Message ( "demo" . getBytes ( ) ) ; "<AssertPlaceHolder>" ; } magic ( ) { return buffer . get ( io . jafka . message . Message . MAGIC_OFFSET ) ; }
org . junit . Assert . assertEquals ( 1 , m . magic ( ) )
filter_not_exists_scoping_04 ( ) { org . apache . jena . sparql . algebra . Op orig = org . apache . jena . sparql . sse . SSE . parseOp ( org . apache . jena . atlas . lib . StrUtils . strjoinNL ( "<sp>(project<sp>(?openTriplets)" , "<sp>(extend<sp>((?openTriplets<sp>?.0))" , "<sp>(group<sp>()<sp>((?.0<sp>(count<sp>?x...
org . junit . Assert . assertEquals ( transformed , expected )
getSnapshotsInIntervalGetInDAY_DifferenDayesSavedTest ( ) { date = getDate ( 2016 , 3 , 20 ) ; ds2 . setCreated ( date ) ; dataStatisticsStore . save ( ds2 ) ; dataStatisticsStore . save ( ds3 ) ; dataStatisticsStore . save ( ds4 ) ; dataStatisticsStore . save ( ds5 ) ; java . util . List < org . hisp . dhis . datastat...
org . junit . Assert . assertEquals ( 2 , asList . size ( ) )
testXMLMetadataWithTripInService ( ) { final org . apache . olingo . client . api . edm . xml . XMLMetadata metadata = client . getDeserializer ( ContentType . APPLICATION_XML ) . toMetadata ( getClass ( ) . getResourceAsStream ( "metadata_TripInService.xml" ) ) ; "<AssertPlaceHolder>" ; org . apache . olingo . client ...
org . junit . Assert . assertNotNull ( metadata )
testAdaptEMFDefaultPresent ( ) { org . eclipse . emf . ecore . EObject obj = EcoreFactory . eINSTANCE . createEObject ( ) ; org . eclipse . papyrus . infra . core . utils . AdapterUtilsTest . EMFAdapter emf = new org . eclipse . papyrus . infra . core . utils . AdapterUtilsTest . EMFAdapter ( obj ) ; "<AssertPlaceHolde...
org . junit . Assert . assertThat ( org . eclipse . papyrus . infra . core . utils . AdapterUtils . adapt ( obj , org . eclipse . papyrus . infra . core . utils . AdapterUtilsTest . EMFAdapter . class , null ) , org . hamcrest . CoreMatchers . is ( emf ) )
testGetUIThreadWhileLifeCycleInExecute ( ) { entryPointManager . register ( TestRequest . DEFAULT_SERVLET_PATH , org . eclipse . rap . rwt . internal . lifecycle . RWTLifeCycle_Test . TestEntryPoint . class , null ) ; org . eclipse . rap . rwt . internal . lifecycle . RWTLifeCycle lifeCycle = new org . eclipse . rap . ...
org . junit . Assert . assertSame ( currentThread . get ( ) , uiThread . get ( ) )
constructor_saves_if_modified ( ) { com . microsoft . azure . sdk . iot . service . transport . amqps . AmqpResponseVerification testVerification = new com . microsoft . azure . sdk . iot . service . transport . amqps . AmqpResponseVerification ( mockedModified ) ; new mockit . Verifications ( ) { { "<AssertPlaceHolder...
org . junit . Assert . assertNull ( testVerification . getException ( ) )
testSave ( ) { int before = countRowsInTable ( org . sculptor . examples . library . media . domain . Book . class ) ; org . sculptor . examples . library . media . domain . Book ddd = new org . sculptor . examples . library . media . domain . Book ( "Domain-Driven<sp>Design" , "0-321-12521-5" ) ; mediaRepository . sav...
org . junit . Assert . assertEquals ( ( before + 1 ) , countRowsInTable ( org . sculptor . examples . library . media . domain . Book . class ) )
getPropertyAsBoolean_true ( ) { java . util . Properties props = java . lang . System . getProperties ( ) ; props . setProperty ( ConfigKey . GENERATOR_PATH . getValue ( ) , "true" ) ; boolean property = ch . puzzle . itc . mobiliar . common . util . ConfigurationService . getPropertyAsBoolean ( ConfigKey . GENERATOR_P...
org . junit . Assert . assertTrue ( property )
testHidePredicateBindingInfo ( ) { view . hidePredicateBindingInfo ( ) ; "<AssertPlaceHolder>" ; } hidePredicateBindingInfo ( ) { predicateBindingInfo . hidden = true ; }
org . junit . Assert . assertTrue ( predicateBindingInfo . hidden )
testConnectJDBC ( ) { org . junit . Assume . assumeTrue ( jdbcConnectable ) ; java . sql . Connection conn = null ; try { conn = connectionManager . getConn ( ) ; "<AssertPlaceHolder>" ; } finally { org . apache . kylin . common . persistence . JDBCConnectionManager . closeQuietly ( conn ) ; } } getConn ( ) { return da...
org . junit . Assert . assertNotNull ( conn )
testGetImplicitFilterWithIndexColorModel ( ) { org . apache . xmlgraphics . image . loader . ImageSize is = org . apache . fop . render . RawPNGTestUtil . getImageSize ( ) ; java . awt . image . IndexColorModel cm = mock ( java . awt . image . IndexColorModel . class ) ; org . apache . xmlgraphics . image . loader . im...
org . junit . Assert . assertEquals ( expectedFilter , iepng . getImplicitFilter ( ) )
testTileSizeRenderingHint ( ) { final java . awt . RenderingHints renderingHints = new java . awt . RenderingHints ( null ) ; try { renderingHints . put ( GPF . KEY_TILE_SIZE , null ) ; org . junit . Assert . fail ( ) ; } catch ( java . lang . Exception expected ) { } try { renderingHints . put ( GPF . KEY_TILE_SIZE , ...
org . junit . Assert . assertSame ( tileSize , renderingHints . get ( GPF . KEY_TILE_SIZE ) )
test_WithLimitAndOrder ( ) { java . lang . String json = com . google . common . io . Resources . toString ( com . google . common . io . Resources . getResource ( "query_withLimitAndOrder.json" ) , Charsets . UTF_8 ) ; org . kairosdb . client . builder . QueryBuilder builder = org . kairosdb . client . builder . Query...
org . junit . Assert . assertThat ( parser . parse ( builder . build ( ) ) , org . hamcrest . CoreMatchers . equalTo ( parser . parse ( json ) ) )
actionPost ( ) { io . seldon . client . beans . ActionBean actionBean = new io . seldon . client . beans . ActionBean ( "1" , "10" , 1 ) ; actionBean . setActionId ( 1L ) ; io . seldon . client . beans . ActionBean responseBean = apiClient . addAction ( actionBean ) ; "<AssertPlaceHolder>" ; } addAction ( io . seldon ....
org . junit . Assert . assertEquals ( responseBean , actionBean )
AnnotationAppearanceTest ( ) { com . itextpdf . kernel . pdf . PdfDocument pdfDocument = new com . itextpdf . kernel . pdf . PdfDocument ( new com . itextpdf . kernel . pdf . PdfWriter ( ( ( com . itextpdf . kernel . pdf . PdfNameTreeTest . destinationFolder ) + "AnnotationAppearanceTest.pdf" ) ) ) ; com . itextpdf . k...
org . junit . Assert . assertEquals ( 1 , objs . size ( ) )
testWriteNullValueFlush ( ) { @ org . apache . kafka . connect . storage . SuppressWarnings ( "unchecked" ) org . apache . kafka . connect . util . Callback < java . lang . Void > callback = org . powermock . api . easymock . PowerMock . createMock ( org . apache . kafka . connect . util . Callback . class ) ; expectSt...
org . junit . Assert . assertTrue ( writer . beginFlush ( ) )
or_tag_predicate_does_not_match_pickle_none_of_the_tags ( ) { gherkin . events . PickleEvent pickleEvent = createPickleWithTags ( java . util . Collections . < gherkin . pickles . PickleTag > emptyList ( ) ) ; com . github . timm . cucumber . runtime . TagPredicate predicate = new com . github . timm . cucumber . runti...
org . junit . Assert . assertFalse ( predicate . apply ( pickleEvent ) )
createStringPath ( ) { com . querydsl . core . types . Path < java . lang . String > path = pathFactory . createStringPath ( metadata ) ; "<AssertPlaceHolder>" ; } createStringPath ( com . querydsl . core . types . PathMetadata ) { return com . querydsl . core . types . dsl . Expressions . stringPath ( metadata ) ; }
org . junit . Assert . assertNotNull ( path )
testMissedInvertedMatchMissingField ( ) { org . graylog2 . plugin . streams . StreamRule rule = getSampleRule ( ) ; rule . setValue ( "42" ) ; rule . setInverted ( true ) ; org . graylog2 . plugin . Message msg = getSampleMessage ( ) ; msg . addField ( "someother" , "30" ) ; org . graylog2 . streams . matchers . Stream...
org . junit . Assert . assertFalse ( matcher . match ( msg , rule ) )
shouldMarkTransitionFromSuperadminToSuperadminAsValidWhenPerformedBySuperadmin ( ) { stubSecurityContextWithAuthentication ( ) ; stubCurrentUserRole ( com . qcadoo . security . internal . validators . ROLE_SUPERADMIN ) ; stubRoleTransition ( com . qcadoo . security . internal . validators . ROLE_SUPERADMIN , com . qcad...
org . junit . Assert . assertTrue ( isValid )
VertxServerRequestToHttpServletRequest ( io . vertx . ext . web . RoutingContext , io . vertx . core . http . HttpServerRequest ) { io . vertx . ext . web . impl . HttpServerRequestWrapper wrapper = new io . vertx . ext . web . impl . HttpServerRequestWrapper ( request ) ; new mockit . Expectations ( ) { { context . re...
org . junit . Assert . assertEquals ( "abc" , reqEx . getRequestURI ( ) )
checkCreation ( ) { info . smart_tools . smartactors . scope . iscope_provider_container . IScopeProviderContainer scopeProviderContainer = new info . smart_tools . smartactors . scope . scope_provider_container . ScopeProviderContainer ( mock ( info . smart_tools . smartactors . scope . iscope . IScopeFactory . class ...
org . junit . Assert . assertNotNull ( scopeProviderContainer )
testIndex1 ( ) { com . orientechnologies . orient . core . sql . parser . SimpleNode result = checkRightSyntax ( "select<sp>from<sp>index:collateCompositeIndexCS<sp>where<sp>key<sp>=<sp>['VAL',<sp>'VaL']" ) ; "<AssertPlaceHolder>" ; com . orientechnologies . orient . core . sql . parser . OSelectStatement select = ( ( ...
org . junit . Assert . assertTrue ( ( result instanceof com . orientechnologies . orient . core . sql . parser . OSelectStatement ) )
matchesCannotBeSavedWithMatchingMessage ( ) { matcher = new com . wounit . matchers . CanBeDeletedMatcher < com . webobjects . eocontrol . EOEnterpriseObject > ( "error" ) ; org . mockito . Mockito . doThrow ( new com . webobjects . foundation . NSValidation . ValidationException ( "error" ) ) . when ( mockObject ) . v...
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( false ) )
should_accept_recovery_for_existant_email ( ) { boolean sentEmail = tryToSendResetPasswordEmail ( validEmail ) ; "<AssertPlaceHolder>" ; } tryToSendResetPasswordEmail ( java . lang . String ) { return navigate ( ) . post ( "/esqueci-minha-senha" , br . com . caelum . vraptor . test . http . Parameters . initWith ( "ema...
org . junit . Assert . assertTrue ( sentEmail )
testWriteUsAscii ( ) { java . lang . String usAscii = "NettyRocks" ; io . netty . buffer . ByteBuf buf = io . netty . buffer . Unpooled . buffer ( 16 ) ; buf . writeBytes ( usAscii . getBytes ( CharsetUtil . US_ASCII ) ) ; io . netty . buffer . ByteBuf buf2 = io . netty . buffer . Unpooled . buffer ( 16 ) ; io . netty ...
org . junit . Assert . assertEquals ( buf , buf2 )
testFetchByPrimaryKeyExisting ( ) { com . liferay . asset . kernel . model . AssetTag newAssetTag = addAssetTag ( ) ; com . liferay . asset . kernel . model . AssetTag existingAssetTag = _persistence . fetchByPrimaryKey ( newAssetTag . getPrimaryKey ( ) ) ; "<AssertPlaceHolder>" ; } getPrimaryKey ( ) { return _amImageE...
org . junit . Assert . assertEquals ( existingAssetTag , newAssetTag )
testGetMaxSize ( ) { "<AssertPlaceHolder>" ; } getMaxSize ( ) { return net . seninp . jmotif . sax . alphabet . NormalAlphabet . MAX_SIZE ; }
org . junit . Assert . assertEquals ( a . getMaxSize ( ) , java . lang . Integer . valueOf ( 20 ) )
testGetNonStringValue ( ) { final java . lang . String key = "Key" ; final org . apache . logging . log4j . message . ObjectMapMessage msg = new org . apache . logging . log4j . message . ObjectMapMessage ( ) . with ( key , 1L ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String ) { return org . slf4j . MDC . get (...
org . junit . Assert . assertEquals ( "1" , msg . get ( key ) )
testValidate_2 ( ) { java . lang . String line = "email<sp>toto1@company.net,<sp>toto2@company.net<sp>with<sp>this<sp>message" ; net . roboconf . core . commands . EmailCommandInstruction instr = new net . roboconf . core . commands . EmailCommandInstruction ( this . context , line , 1 ) ; java . util . List < net . ro...
org . junit . Assert . assertEquals ( 0 , errors . size ( ) )
syncAlertsMetadataWithError ( ) { final long count = 10L ; final java . lang . String collectionName = "alert" ; when ( mongoOps . getCollectionName ( eq ( org . sentilo . web . catalog . domain . Alert . class ) ) ) . thenReturn ( collectionName ) ; when ( mongoOps . count ( any ( org . springframework . data . mongod...
org . junit . Assert . assertFalse ( syncAlertsIsRunning )
testBuilderExampleMappings ( ) { com . networknt . schema . JsonSchemaFactory instance = com . networknt . schema . JsonSchemaFactory . getInstance ( ) ; java . net . URL example = new java . net . URL ( "http://example.com/invalid/schema/url" ) ; try { com . networknt . schema . JsonSchema schema = instance . getSchem...
org . junit . Assert . assertEquals ( 0 , schema . validate ( mapper . createObjectNode ( ) ) . size ( ) )
ensureThatTheShuffleMethodChangesTheOrderOfTheCards ( ) { java . util . List < com . clinkworks . solitaire . datatype . Card > cards = com . google . common . collect . Lists . newArrayList ( ) ; for ( com . clinkworks . solitaire . datatype . Rank rank : com . clinkworks . solitaire . datatype . Rank . standardRanks ...
org . junit . Assert . assertFalse ( allElementsAreTheSame )
testNullInitialResultOfSubscriptionQueryReportedAsEmptyMono ( ) { when ( mockBus . subscriptionQuery ( anySubscriptionMessage ( java . lang . String . class , java . lang . String . class ) , any ( ) , anyInt ( ) ) ) . thenReturn ( new org . axonframework . queryhandling . DefaultSubscriptionQueryResult ( reactor . cor...
org . junit . Assert . assertNull ( actual . initialResult ( ) . block ( ) )
shouldFetchByState ( ) { java . lang . String serviceName = java . util . UUID . randomUUID ( ) . toString ( ) ; java . lang . String serviceId = java . util . UUID . randomUUID ( ) . toString ( ) ; client . agentClient ( ) . register ( 8080 , 20L , serviceName , serviceId , com . orbitz . consul . HealthITest . NO_TAG...
org . junit . Assert . assertTrue ( found )
testCascadeTraining ( ) { java . io . File temp = java . io . File . createTempFile ( "fannj_" , ".tmp" ) ; temp . deleteOnExit ( ) ; org . apache . commons . io . IOUtils . copy ( this . getClass ( ) . getResourceAsStream ( "parity8.train" ) , new java . io . FileOutputStream ( temp ) ) ; com . googlecode . fannj . Fa...
org . junit . Assert . assertTrue ( ( "" + mse ) , ( mse <= desiredError ) )
extremeLargeSelectionRange ( ) { org . zkoss . zss . api . impl . Book book = org . zkoss . zss . api . impl . Util . loadBook ( this , "book/excelsortsample.xlsx" ) ; org . zkoss . zss . api . impl . Sheet sheet = book . getSheet ( "SampleData" ) ; long startTime = org . zkoss . zss . api . impl . Calendar . getInstan...
org . junit . Assert . assertEquals ( true , ( ( ( endTime - startTime ) / 1000 ) < 1 ) )
testIt ( ) { java . io . PrintWriter pw = new java . io . PrintWriter ( new java . io . FileWriter ( configPath ) ) ; pw . println ( "cordinator:" ) ; pw . close ( ) ; try { new com . liveramp . hank . config . yaml . TestYamlConfigurator . TestImplOfBaseYamlConfigurator ( configPath ) ; org . junit . Assert . fail ( "...
org . junit . Assert . assertTrue ( ( coordinator instanceof com . liveramp . hank . coordinator . mock . MockCoordinator ) )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( teams . isEmpty ( ) )
testFalseNaam ( ) { setup ( true , false ) ; org . mockito . Mockito . when ( persoon . getAdministratienummer ( ) ) . thenReturn ( nl . bzk . migratiebrp . synchronisatie . runtime . service . toevalligegebeurtenis . controle . persoon . PersoonControleTest . ANUMMER ) ; org . mockito . Mockito . when ( persoon . getB...
org . junit . Assert . assertFalse ( subject . controleer ( persoon , verzoek ) )
shouldConvertStringToId ( ) { org . openkilda . model . MeterId meterId = new org . openkilda . model . MeterId ( 291 ) ; org . openkilda . model . MeterId actualEntity = new org . openkilda . persistence . converters . MeterIdConverter ( ) . toEntityAttribute ( meterId . getValue ( ) ) ; "<AssertPlaceHolder>" ; } getV...
org . junit . Assert . assertEquals ( meterId , actualEntity )
testSetProgress ( ) { System . out . println ( "setProgress" ) ; double progressValue = 0.12 ; com . bixly . pastevid . screencap . components . progressbar . FFMpegProgressBarListener instance = new com . bixly . pastevid . screencap . components . progressbar . FFMpegProgressBarListener ( com . bixly . pastevid . scr...
org . junit . Assert . assertEquals ( ( ( int ) ( progressValue * 100 ) ) , instance . getProgress ( ) )
testIsInfoEnabledWithNoFilter ( ) { addNoFilter ( ) ; logger . setLevel ( Level . DEBUG ) ; "<AssertPlaceHolder>" ; } isInfoEnabled ( ) { return isInfoEnabled ( null ) ; }
org . junit . Assert . assertFalse ( logger . isInfoEnabled ( ) )
testLang303 ( ) { org . apache . commons . lang3 . time . DateParser parser = getInstance ( org . apache . commons . lang3 . time . FastDateParserTest . YMD_SLASH ) ; java . util . Calendar cal = java . util . Calendar . getInstance ( ) ; cal . set ( 2004 , 11 , 31 ) ; java . util . Date date = parser . parse ( "2004/1...
org . junit . Assert . assertEquals ( date , parser . parse ( "2004/11/31" ) )
testSet ( ) { org . apache . tajo . common . type . IPv4 ip = null ; ip = new org . apache . tajo . common . type . IPv4 ( "255.255.255.255" ) ; byte [ ] b = new byte [ 4 ] ; for ( int i = 0 ; i < 4 ; i ++ ) { b [ i ] = ( ( byte ) ( 255 ) ) ; } org . apache . tajo . common . type . IPv4 ip2 = new org . apache . tajo . ...
org . junit . Assert . assertEquals ( ip , ip2 )
testGetLatestRunIdRunBySequencerPartitionContainerId ( ) { uk . ac . bbsrc . tgac . miso . core . data . Run run = dao . getLatestRunIdRunBySequencerPartitionContainerId ( 1L ) ; "<AssertPlaceHolder>" ; } getLatestRunIdRunBySequencerPartitionContainerId ( long ) { currentSession ( ) . flush ( ) ; org . hibernate . Crit...
org . junit . Assert . assertNotNull ( run )
readGrib2Files ( ) { counterCurrent = ucar . nc2 . grib . TestCoordinatesMatchGbx . countersAll . makeSubCounters ( ) ; int fail = readAllDir ( ( ( ucar . unidata . util . test . TestDir . cdmUnitTestDir ) + "formats/grib2" ) , null , false ) ; ucar . nc2 . grib . TestCoordinatesMatchGbx . logger . debug ( "readGrib2Fi...
org . junit . Assert . assertEquals ( 0 , fail )
testVoerRegelUitDatumEindeGevuldEnGeenDeelname ( ) { final nl . bzk . brp . model . bericht . kern . PersoonBericht persoonBericht = new nl . bzk . brp . model . bericht . kern . PersoonBericht ( ) ; persoonBericht . setDeelnameEUVerkiezingen ( new nl . bzk . brp . model . bericht . kern . PersoonDeelnameEUVerkiezingen...
org . junit . Assert . assertTrue ( berichtEntiteits . isEmpty ( ) )
testFetchByPrimaryKeysWithNoPrimaryKeys ( ) { java . util . Set < java . io . Serializable > primaryKeys = new java . util . HashSet < java . io . Serializable > ( ) ; java . util . Map < java . io . Serializable , com . liferay . asset . kernel . model . AssetTag > assetTags = _persistence . fetchByPrimaryKeys ( prima...
org . junit . Assert . assertTrue ( assetTags . isEmpty ( ) )
testGetSchemaWithValidAttributes ( ) { final long schemaId = 123456 ; final int version = 2 ; final int protocol = 1 ; final java . util . Map < java . lang . String , java . lang . String > attributes = new java . util . HashMap ( ) ; attributes . put ( HortonworksAttributeSchemaReferenceStrategy . SCHEMA_ID_ATTRIBUTE...
org . junit . Assert . assertNotNull ( retrievedSchema )
testAddQuotesIfNotExist_Case_4 ( ) { java . lang . String input = ( org . talend . core . utils . TalendQuoteUtilsTest . QUOTES ) + ( org . talend . core . utils . TalendQuoteUtilsTest . QUOTES ) ; java . lang . String expect = ( org . talend . core . utils . TalendQuoteUtilsTest . QUOTES ) + ( org . talend . core . ut...
org . junit . Assert . assertTrue ( expect . equals ( ouput ) )
testCacheMiss_UnderlyingSuccessCacheSucceeded ( ) { when ( mMemoryCache . cache ( mPostprocessedBitmapCacheKey , mImageRef2 ) ) . thenReturn ( mImageRef2Clone ) ; com . facebook . imagepipeline . producers . Consumer consumer = performCacheMiss ( ) ; consumer . onNewResult ( mImageRef1 , Consumer . NO_FLAGS ) ; mImageR...
org . junit . Assert . assertFalse ( mImageRef2Clone . isValid ( ) )
testNestedIterationWithArg ( ) { org . stringtemplate . v4 . STGroup group = new org . stringtemplate . v4 . STGroup ( ) ; group . defineTemplate ( "test" , "users" , "<users:{u<sp>|<sp><u.id:{id<sp>|<sp><id>=}><u.name>}>!" ) ; org . stringtemplate . v4 . ST st = group . getInstanceOf ( "test" ) ; st . add ( "users" , ...
org . junit . Assert . assertEquals ( expected , result )
testCalculateHash1 ( ) { final byte [ ] hash1 = org . oscm . authorization . PasswordHash . calculateHash ( 123456 , "secret" ) ; final byte [ ] hash2 = org . oscm . authorization . PasswordHash . calculateHash ( 123456 , "secret" ) ; "<AssertPlaceHolder>" ; } calculateHash ( long , java . lang . String ) { try { final...
org . junit . Assert . assertArrayEquals ( hash1 , hash2 )
testNullSegment ( ) { org . eclipse . tracecompass . tmf . remote . core . shell . ICommandInput input = new org . eclipse . tracecompass . internal . tmf . remote . core . shell . CommandInput ( ) ; input . add ( null ) ; "<AssertPlaceHolder>" ; } getInput ( ) { return fInputElement ; }
org . junit . Assert . assertEquals ( 0 , input . getInput ( ) . size ( ) )
whenJoinerWithPrefixSuffixWithEmptyValue_thenReturnDefault ( ) { java . util . StringJoiner commaSeparatedPrefixSuffixJoiner = new java . util . StringJoiner ( DELIMITER_COMMA , PREFIX , SUFFIX ) ; commaSeparatedPrefixSuffixJoiner . setEmptyValue ( EMPTY_JOINER ) ; "<AssertPlaceHolder>" ; } toString ( ) { return ( ( ( ...
org . junit . Assert . assertEquals ( commaSeparatedPrefixSuffixJoiner . toString ( ) , EMPTY_JOINER )
passthroughInboundDocSubmission ( ) { oasis . names . tc . ebxml_regrep . xsd . rs . _3 . RegistryResponseType expectedResponse = new oasis . names . tc . ebxml_regrep . xsd . rs . _3 . RegistryResponseType ( ) ; gov . hhs . fha . nhinc . docsubmission . adapter . proxy . AdapterDocSubmissionProxy adapterProxy = mock (...
org . junit . Assert . assertSame ( expectedResponse , actualResponse )
testSearchBigBytes_500K ( ) { org . riversun . finbin . BigBinarySearcher bbs = new org . riversun . finbin . BigBinarySearcher ( ) ; byte [ ] srcBytes = org . riversun . finbin . BinaryUtil . loadBytesFromFile ( new java . io . File ( "src/test/resources/finbin_test_500kbyte.bin" ) ) ; java . lang . String searchText ...
org . junit . Assert . assertTrue ( java . util . Arrays . equals ( expectedArray , resultArray ) )
null_selector__should_return_EMPTY_element_set ( ) { io . github . seleniumquery . SeleniumQueryObject targetSQO = testinfrastructure . testdouble . io . github . seleniumquery . SeleniumQueryObjectMother . createStubSeleniumQueryObjectWithAtLeastOneElement ( ) ; io . github . seleniumquery . SeleniumQueryObject result...
org . junit . Assert . assertThat ( resultSQO . get ( ) , empty ( ) )
testGetCanonicalServiceNameWithNonDefaultMountTable ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; org . apache . hadoop . fs . viewfs . ConfigUtil . addLink ( conf , org . apache . hadoop . fs . viewfs . TestViewFileSystemDelegationTokenSupport . MOUNT_...
org . junit . Assert . assertNull ( serviceName )
testFitsUndefinedHdu2 ( ) { nom . tam . fits . Fits fits1 = makeAsciiTable ( ) ; fits1 . read ( ) ; byte [ ] undefinedData = new byte [ 1000 ] ; for ( int index = 0 ; index < ( undefinedData . length ) ; index ++ ) { undefinedData [ index ] = ( ( byte ) ( index ) ) ; } nom . tam . fits . Data data = nom . tam . fits . ...
org . junit . Assert . assertArrayEquals ( undefinedData , rereadUndefinedData )
testOneEdgeTooRecent ( ) { long halfDaysPriorBenchmark = ( benchmarkTimeInMillis ) - ( ( oneDayInMillis ) / 2 ) ; com . twitter . graphjet . hashing . SmallArrayBasedLongToDoubleMap socialProof = new com . twitter . graphjet . hashing . SmallArrayBasedLongToDoubleMap ( ) ; socialProof . put ( 100L , 1.0 , halfDaysPrior...
org . junit . Assert . assertEquals ( true , filter . filterResult ( 1L , socialProofs ) )
testSuccess ( ) { int exitCode = executeAsFile ( new java . lang . String [ ] { org . jboss . additional . testsuite . jdkall . past . eap_6_4_x . management . cli . FileArgumentTestCase . SET_PROP_COMMAND } , true ) ; if ( exitCode == 0 ) { executeAsFile ( new java . lang . String [ ] { org . jboss . additional . test...
org . junit . Assert . assertEquals ( 0 , exitCode )
givenLinkedHashMap_whenGetsOrderedKeyset_thenCorrect ( ) { com . baeldung . java . map . LinkedHashMap < java . lang . Integer , java . lang . String > map = new com . baeldung . java . map . LinkedHashMap ( ) ; map . put ( 1 , null ) ; map . put ( 2 , null ) ; map . put ( 3 , null ) ; map . put ( 4 , null ) ; map . pu...
org . junit . Assert . assertEquals ( new java . lang . Integer ( ( i + 1 ) ) , arr [ i ] )
testSaltedAuthenticationInfo ( ) { org . apache . shiro . authc . credential . HashedCredentialsMatcher matcher = new org . apache . shiro . authc . credential . HashedCredentialsMatcher ( org . apache . shiro . crypto . hash . Sha1Hash . ALGORITHM_NAME ) ; org . apache . shiro . util . ByteSource salt = new org . apac...
org . junit . Assert . assertTrue ( matcher . doCredentialsMatch ( token , account ) )
shouldAcceptValidMetadataObject ( ) { org . openstack . atlas . api . validation . results . ValidatorResult result = validator . validate ( metadata , HttpRequestType . POST ) ; "<AssertPlaceHolder>" ; } passedValidation ( ) { return expectationResultList . isEmpty ( ) ; }
org . junit . Assert . assertTrue ( result . passedValidation ( ) )
shouldParsePicklistsToObjectsFail ( ) { final int properCountExceptions = 2 ; final java . lang . String [ ] invalidPicklistToStrings = new java . lang . String [ ] { "Account,DataSource" } ; final java . lang . String [ ] invalidPicklistToEnums = new java . lang . String [ ] { "Con-tact.Contact_Source_Information__c" ...
org . junit . Assert . assertEquals ( properCountExceptions , resultCountExceptions )
addPass ( ) { final org . apache . commons . collections4 . collection . PredicatedCollection . Builder < java . lang . String > builder = org . apache . commons . collections4 . collection . PredicatedCollection . notNullBuilder ( ) ; builder . add ( "test" ) ; "<AssertPlaceHolder>" ; } createPredicatedList ( ) { retu...
org . junit . Assert . assertEquals ( builder . createPredicatedList ( ) . size ( ) , 1 )
shouldThrowExceptionIfGraphIdAndTableNameAreProvidedAndDifferent ( ) { final uk . gov . gchq . gaffer . hbasestore . HBaseProperties properties = uk . gov . gchq . gaffer . hbasestore . HBaseProperties . loadStoreProperties ( uk . gov . gchq . gaffer . commonutil . StreamUtil . storeProps ( uk . gov . gchq . gaffer . h...
org . junit . Assert . assertNotNull ( e . getMessage ( ) )
shouldNavigateCommitWithMultiplePages ( ) { javax . jcr . Node commit = session . getNode ( "/repos/git-modeshape-remote/commits/d1f7daf32bd67edded7545221cd5c79d94813310" ) ; "<AssertPlaceHolder>" ; javax . jcr . NodeIterator childrenIterator = commit . getNodes ( ) ; while ( childrenIterator . hasNext ( ) ) { children...
org . junit . Assert . assertNotNull ( commit )
testNoTransaction_SAMPLED_CONTINUATION ( ) { final long expectedTransactionCount = 0L ; final long actualCount = this . transactionCounter . getSampledContinuationCount ( ) ; "<AssertPlaceHolder>" ; } getSampledContinuationCount ( ) { return ( java . lang . Math . abs ( ( ( idGenerator . currentContinuedTransactionId (...
org . junit . Assert . assertEquals ( expectedTransactionCount , actualCount )
testCount_noQuery_defaultDirection ( ) { org . calrissian . accumulorecipes . thirdparty . tinkerpop . model . EntityVertex v1 = ( ( org . calrissian . accumulorecipes . thirdparty . tinkerpop . model . EntityVertex ) ( graph . getVertex ( org . calrissian . accumulorecipes . thirdparty . tinkerpop . EntityVertexQueryI...
org . junit . Assert . assertEquals ( 3 , v1 . query ( ) . count ( ) )
testValidName ( ) { java . lang . String name = "My1stExperiment" ; final io . rtr . alchemy . models . Experiment experiment = new io . rtr . alchemy . models . Experiment ( experiments , name ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( experiment . getName ( ) , name )
testNotEqualsPos ( ) { edu . ucla . sspace . dependency . DependencyTreeNode node1 = new edu . ucla . sspace . dependency . SimpleDependencyTreeNode ( "cat" , "n" , "c" , 0 ) ; edu . ucla . sspace . dependency . DependencyTreeNode node2 = new edu . ucla . sspace . dependency . SimpleDependencyTreeNode ( "cat" , "v" , "...
org . junit . Assert . assertFalse ( node1 . equals ( node2 ) )
exitCodeIsMinusTwoWhenOneReplicationFails ( ) { doThrow ( new java . lang . RuntimeException ( ) ) . when ( replication2 ) . replicate ( ) ; locomotive . run ( applicationArguments ) ; "<AssertPlaceHolder>" ; } getExitCode ( ) { if ( ( replicationFailures ) == ( tableReplications . size ( ) ) ) { return - 1 ; } if ( ( ...
org . junit . Assert . assertThat ( locomotive . getExitCode ( ) , org . hamcrest . CoreMatchers . is ( ( - 2 ) ) )
testAlternatiefPadMVGeboorteBerichtStatusCodeFout ( ) { final nl . moderniseringgba . isc . esb . message . lo3 . impl . Tb01Bericht tb01Bericht = createTb01Bericht ( ) ; final nl . moderniseringgba . isc . esb . message . brp . impl . MvGeboorteVerzoekBericht mvGeboorteVerzoekBericht = happyFlowTotMvGeboorteAntwoordBe...
org . junit . Assert . assertTrue ( processEnded ( ) )
testJumbuneException_1 ( ) { org . jumbune . utils . exception . ErrorCodesAndMessages errorCodeAndMessage = org . jumbune . utils . exception . ErrorCodesAndMessages . COULD_NOT_CREATE_DIRECTORY ; org . jumbune . utils . exception . JumbuneException result = new org . jumbune . utils . exception . JumbuneException ( e...
org . junit . Assert . assertNotNull ( result )
test20 ( ) { byte [ ] expected = new byte [ ] { ( ( byte ) ( 0 ) ) , ( ( byte ) ( 0 ) ) , ( ( byte ) ( 0 ) ) } ; java . lang . String str = new java . lang . String ( "" ) ; "<AssertPlaceHolder>" ; } build_fixed_str ( long , java . lang . String ) { return com . github . mpjct . jmpjct . mysql . proto . Proto . build_f...
org . junit . Assert . assertArrayEquals ( expected , com . github . mpjct . jmpjct . mysql . proto . Proto . build_fixed_str ( 3 , str ) )
testServiceLookup ( ) { org . nuxeo . runtime . services . event . EventService eventComponent = ( ( org . nuxeo . runtime . services . event . EventService ) ( org . nuxeo . runtime . api . Framework . getRuntime ( ) . getComponent ( EventService . NAME ) ) ) ; org . nuxeo . runtime . services . event . EventService e...
org . junit . Assert . assertSame ( eventComponent , eventService )
testGetDatasetQueryEmpty ( ) { metadata . setDataset ( true ) ; org . mockito . Mockito . when ( fieldBean . getFields ( metadata ) ) . thenReturn ( fields ) ; org . mockito . Mockito . when ( chunkBean . get ( metadata , 1 ) ) . thenReturn ( result ) ; org . mockito . Mockito . when ( parameterMap . containsKey ( "que...
org . junit . Assert . assertEquals ( 200 , response . getStatus ( ) )
getObservations_shouldGetAllObsAssignedToGivenEncounters ( ) { org . openmrs . api . ObsService obsService = org . openmrs . api . context . Context . getObsService ( ) ; java . util . List < org . openmrs . Obs > obss = obsService . getObservations ( null , java . util . Collections . singletonList ( new org . openmrs...
org . junit . Assert . assertEquals ( 6 , obss . size ( ) )