input stringlengths 28 18.7k | output stringlengths 39 1.69k |
|---|---|
checkAllBase32 ( ) { for ( cash . xcl . api . util . CountryRegion cr : cash . xcl . api . util . RegionAddressGeneratorTest . regionIndex . countryRegions ( ) ) { cash . xcl . api . util . RegionAddressGenerator generator = new cash . xcl . api . util . RegionAddressGenerator ( cr ) ; long address = generator . newAdd... | org . junit . Assert . assertEquals ( cr , cash . xcl . api . util . RegionAddressGeneratorTest . regionIndex . matchCountryRegion ( encodedAddress ) ) |
shouldRejectWhenMissingTicketId ( ) { ticket . setTicketId ( null ) ; org . openstack . atlas . api . validation . results . ValidatorResult result = validator . validate ( ticket , org . openstack . atlas . api . mgmt . validation . validators . POST ) ; "<AssertPlaceHolder>" ; } resultMessage ( org . openstack . atla... | org . junit . Assert . assertFalse ( resultMessage ( result , org . openstack . atlas . api . mgmt . validation . validators . POST ) , result . passedValidation ( ) ) |
testDomain ( ) { java . lang . Object src = new java . lang . Object ( ) ; org . apache . cayenne . configuration . DataChannelDescriptor d = new org . apache . cayenne . configuration . DataChannelDescriptor ( ) ; org . apache . cayenne . configuration . event . DomainEvent e = new org . apache . cayenne . configurati... | org . junit . Assert . assertSame ( d , e . getDomain ( ) ) |
sortNameAscAddressAsc ( ) { java . lang . String sqlite = "SELECT<sp>*<sp>FROM<sp>users<sp>ORDER<sp>BY<sp>name<sp>asc,<sp>address<sp>asc<sp>LIMIT<sp>10" ; java . lang . String api = "select<sp>*<sp>order<sp>by<sp>name<sp>asc,<sp>address<sp>asc" ; org . apache . usergrid . query . validator . QueryRequest request = new ... | org . junit . Assert . assertTrue ( response . toString ( ) , response . result ( ) ) |
Non_string_instance_seed_returns_new_no_specimen ( ) { com . flextrade . jfixture . requests . SeededRequest request = new com . flextrade . jfixture . requests . SeededRequest ( 1 , java . lang . String . class ) ; java . lang . Object result = this . builder . create ( request , this . mockSpecimenContext ) ; "<Asser... | org . junit . Assert . assertEquals ( new com . flextrade . jfixture . NoSpecimen ( ) , result ) |
test3 ( ) { int nbResults = executeQuery ( ( "PREFIX<sp>:<sp><http://meraka/moss/exampleBooks.owl#>\n" + ( ( ( ( ( ( "\n" + "SELECT<sp>?x<sp>?y<sp>?z<sp>\n" ) + "{" ) + "<sp>?x<sp>a<sp>:Store;<sp>\n" ) + "<sp>:name<sp>?y;\n" ) + "<sp>:address<sp>?z\n" ) + "}" ) ) ) ; "<AssertPlaceHolder>" ; } executeQuery ( java . lang... | org . junit . Assert . assertEquals ( 5 , nbResults ) |
nullAnnotations ( ) { org . sejda . sambox . pdmodel . PDPage victim = new org . sejda . sambox . pdmodel . PDPage ( ) ; victim . getCOSObject ( ) . setItem ( COSName . ANNOTS , null ) ; "<AssertPlaceHolder>" ; } getAnnotations ( ) { return getAnnotations ( new org . sejda . sambox . pdmodel . interactive . annotation ... | org . junit . Assert . assertTrue ( victim . getAnnotations ( ) . isEmpty ( ) ) |
testNewStreamFactoryUsingScriptLookupStrategy ( ) { useScriptLookupStrategy ( ) ; "<AssertPlaceHolder>" ; } newStreamFactory ( ) { edu . illinois . library . cantaloupe . source . S3ObjectInfo info = getObjectInfo ( ) ; info . setLength ( getObjectAttributes ( ) . length ) ; return new edu . illinois . library . cantal... | org . junit . Assert . assertNotNull ( instance . newStreamFactory ( ) ) |
test_plus_Period_zero ( ) { java . time . LocalDateTime t = TEST_2007_07_15_12_30_40_987654321 . plus ( MockSimplePeriod . ZERO_DAYS ) ; "<AssertPlaceHolder>" ; } plus ( int ) { return compileOperation ( new org . apache . xpath . operations . Plus ( ) , opPos ) ; } | org . junit . Assert . assertSame ( t , TEST_2007_07_15_12_30_40_987654321 ) |
getNumberOfSUserWhoCanStartPendingTask_return_userIds_ordered_by_userName ( ) { final org . bonitasoft . engine . identity . model . SUser john = repository . add ( aUser ( ) . withUserName ( "john" ) . withId ( 1L ) . build ( ) ) ; final org . bonitasoft . engine . identity . model . SUser paul = repository . add ( aU... | org . junit . Assert . assertThat ( numberOfUsers ) |
testDeferStack ( ) { java . util . List < java . lang . Integer > list = new java . util . ArrayList ( ) ; org . apache . aries . component . dsl . internal . UpdateSupport . runUpdate ( ( ) -> { list . add ( 1 ) ; org . apache . aries . component . dsl . internal . UpdateSupport . defer ( ( ) -> list . add ( 6 ) ) ; o... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( 1 , 2 , 3 , 4 , 5 , 6 ) , list ) |
testChoiceIterator ( ) { net . sourceforge . tess4j . TessAPI1Test . logger . info ( "\t-<sp>" 0 ) ; java . lang . String filename = java . lang . String . format ( "%s/%s" , this . testResourcesDataPath , "eurotext.tif" ) ; java . io . File tiff = new java . io . File ( filename ) ; java . awt . image . BufferedImage ... | org . junit . Assert . assertTrue ( true ) |
testPackUnpackLong ( ) { long a = - 2401053088876216593L ; long b = 0 ; byte [ ] c = new byte [ ( syndeticlogic . catena . utility . Format . LONG_SIZE ) + 31 ] ; syndeticlogic . catena . utility . Format . packLong ( c , 10 , a ) ; b = syndeticlogic . catena . utility . Format . unpackLong ( c , 10 ) ; "<AssertPlaceHo... | org . junit . Assert . assertEquals ( a , b ) |
getBigDecimal ( ) { final java . math . BigDecimal value = new java . math . BigDecimal ( 1.2 ) ; final io . trane . ndbc . value . BigDecimalValue wrapper = new io . trane . ndbc . value . BigDecimalValue ( value ) ; "<AssertPlaceHolder>" ; } getBigDecimal ( ) { return new java . math . BigDecimal ( get ( ) ) ; } | org . junit . Assert . assertEquals ( value , wrapper . getBigDecimal ( ) ) |
testAddAndRemoveClusters ( ) { org . apache . hadoop . hbase . replication . TestReplicationSmallTests . LOG . info ( "testAddAndRemoveClusters" ) ; admin . removePeer ( "2" ) ; java . lang . Thread . sleep ( org . apache . hadoop . hbase . replication . SLEEP_TIME ) ; byte [ ] rowKey = org . apache . hadoop . hbase . ... | org . junit . Assert . assertArrayEquals ( res . value ( ) , row ) |
whenInternalRouteStateIsNotSet_itShouldReturnNull ( ) { jsprit . core . problem . solution . route . VehicleRoute route = getRoute ( mock ( jsprit . core . problem . vehicle . Vehicle . class ) ) ; jsprit . core . algorithm . state . StateManager stateManager = new jsprit . core . algorithm . state . StateManager ( vrp... | org . junit . Assert . assertTrue ( ( costs == null ) ) |
testEmptyAuthUser ( ) { try { new apps . provisioning . config . ConfigData ( "./test/empty-auth-user.properties" ) ; org . junit . Assert . fail ( "An<sp>incorrect<sp>value<sp>was<sp>passed<sp>as<sp>valid." ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } } | org . junit . Assert . assertTrue ( true ) |
testRejectedOnOffAttribute ( ) { org . jboss . dmr . ModelNode model = new org . jboss . dmr . ModelNode ( ) ; model . get ( "monitoring" ) . set ( "on" ) ; java . util . List < java . lang . String > result = org . jboss . as . jacorb . TransformUtils . validateDeprecatedProperites ( model ) ; "<AssertPlaceHolder>" ; ... | org . junit . Assert . assertFalse ( result . isEmpty ( ) ) |
passesReturnValue ( ) { java . lang . Object o = new java . lang . Object ( ) ; "<AssertPlaceHolder>" ; } transformReturnValue ( java . lang . Object ) { return returnValue ; } | org . junit . Assert . assertEquals ( o , builder . transformReturnValue ( o ) ) |
testLinspace1 ( ) { org . nd4j . linalg . api . ndarray . INDArray z1 = org . nd4j . linalg . factory . Nd4j . linspace ( 1 , 100 , 200 , DataType . DOUBLE ) ; org . nd4j . linalg . rng . Linspace linspace = new org . nd4j . linalg . rng . Linspace ( ( ( double ) ( 1 ) ) , ( ( double ) ( 100 ) ) , 200 , org . nd4j . li... | org . junit . Assert . assertEquals ( z1 , z2 ) |
getAROTraceDirIOS ( ) { java . lang . String dirname = com . att . aro . core . util . Util . getAROTraceDirIOS ( ) ; boolean hasname = dirname . contains ( "VideoOptimizerTraceIOS" ) ; "<AssertPlaceHolder>" ; } getAROTraceDirIOS ( ) { java . lang . String dirname = com . att . aro . core . util . Util . getAROTraceDir... | org . junit . Assert . assertTrue ( hasname ) |
testDynamic ( ) { org . apache . mina . codec . delimited . ByteBufferEncoder < org . apache . mina . generated . protoc . AddressBookProtos . Person > encoder = getEncoder ( ) ; org . apache . mina . codec . delimited . serialization . ProtobufDynamicMessageDecoder decoder = new org . apache . mina . codec . delimited... | org . junit . Assert . assertEquals ( object , message . get ( org . apache . mina . generated . protoc . AddressBookProtos . Person . class ) ) |
getTestMethodSourceCode_A$TestMethodMeta_GivenWhenThen_JUnit4 ( ) { org . junithelper . core . config . Configuration config = new org . junithelper . core . config . Configuration ( ) ; config . testingPatternExplicitComment = org . junithelper . core . config . TestingPatternExplicitComment . GivenWhenThen ; org . ju... | org . junit . Assert . assertEquals ( expected , actual ) |
shouldReturnFalseWhenEntityDoesnotExists ( ) { com . qcadoo . model . api . DataDefinition productDD = org . mockito . Mockito . mock ( com . qcadoo . model . api . DataDefinition . class ) ; java . lang . Long productId = 1L ; given ( substitute . getBelongsToField ( SubstituteFields . PRODUCT ) ) . willReturn ( produ... | org . junit . Assert . assertFalse ( result ) |
setValue_nullOnNullable_shouldWork ( ) { com . vaadin . v7 . data . util . sqlcontainer . ColumnProperty cp = new com . vaadin . v7 . data . util . sqlcontainer . ColumnProperty ( "NAME" , false , true , true , false , "asdf" , java . lang . String . class ) ; com . vaadin . v7 . data . util . sqlcontainer . SQLContain... | org . junit . Assert . assertNull ( cp . getValue ( ) ) |
testGetOutputStream ( ) { "<AssertPlaceHolder>" ; } getOutputStream ( ) { return outputStream ; } | org . junit . Assert . assertNotNull ( handler . getOutputStream ( ) ) |
shouldReturnFalseAndAddErrorWhenValidateTransferAndAllFieldsAreNull ( ) { given ( transfer . getStringField ( com . qcadoo . mes . materialFlow . hooks . TYPE ) ) . willReturn ( null ) ; given ( transfer . getField ( com . qcadoo . mes . materialFlow . hooks . TIME ) ) . willReturn ( null ) ; given ( transfer . getBelo... | org . junit . Assert . assertFalse ( result ) |
whenUsingSubSet_shouldReturnSubSetElements ( ) { java . util . SortedSet < java . lang . Integer > treeSet = new java . util . TreeSet ( ) ; treeSet . add ( 1 ) ; treeSet . add ( 2 ) ; treeSet . add ( 3 ) ; treeSet . add ( 4 ) ; treeSet . add ( 5 ) ; treeSet . add ( 6 ) ; java . util . Set < java . lang . Integer > exp... | org . junit . Assert . assertEquals ( expectedSet , subSet ) |
givenKeyValue_whenPut_thenAddEntryToMap ( ) { org . apache . commons . collections4 . BidiMap < java . lang . String , java . lang . String > map = new org . apache . commons . collections4 . bidimap . DualHashBidiMap ( ) ; map . put ( "key1" , "value1" ) ; map . put ( "key2" , "value2" ) ; "<AssertPlaceHolder>" ; } si... | org . junit . Assert . assertEquals ( map . size ( ) , 2 ) |
testSetBit ( ) { byte [ ] bytes = new byte [ ] { ( ( byte ) ( 112 ) ) } ; org . jitsi . impl . neomedia . transform . fec . FlexFec03BitSet bitSet = org . jitsi . impl . neomedia . transform . fec . FlexFec03BitSet . valueOf ( bytes ) ; bitSet . set ( 6 ) ; bytes [ 0 ] |= 128 > > 6 ; byte [ ] result = bitSet . toByteAr... | org . junit . Assert . assertArrayEquals ( bytes , result ) |
testEnd ( ) { java . lang . String [ ] endPatternStrings = new java . lang . String [ ] { "(B<sp>F<sp>$$$)" , "(A<sp>B<sp>C<sp>$$$)" } ; for ( java . lang . String endPatternString : endPatternStrings ) { edu . illinois . cs . cogcomp . core . datastructures . trees . Tree < java . lang . String > endPattern = edu . il... | org . junit . Assert . assertEquals ( true , result ) |
testEvaluationAdjacencySameTermWithSkipsSuccessTest ( ) { java . lang . String query = buildFunction ( ContentFunctions . CONTENT_WITHIN_FUNCTION_NAME , "2" , Constants . TERM_OFFSET_MAP_JEXL_VARIABLE_NAME , "'cat'" , "'cat'" ) ; org . apache . commons . jexl2 . Expression expr = datawave . query . jexl . functions . C... | org . junit . Assert . assertTrue ( datawave . query . jexl . functions . ContentFunctionsTest . expect ( o , true ) ) |
testGetNotification ( ) { org . opennms . web . notification . Notification notice = m_daoNotificationRepo . getNotification ( 1 ) ; "<AssertPlaceHolder>" ; } getNotification ( java . lang . String ) { update ( ) ; return getNotifications ( ) . get ( name ) ; } | org . junit . Assert . assertNotNull ( notice ) |
shouldGetCumulatedHoursPerAssignmentForProjects ( ) { java . util . List < net . rrm . ehour . persistence . report . dao . Project > projects = java . util . Arrays . asList ( net . rrm . ehour . persistence . report . dao . ProjectObjectMother . createProject ( 1 ) ) ; java . util . List < net . rrm . ehour . report ... | org . junit . Assert . assertEquals ( 2 , results . size ( ) ) |
validate_currentTimeAndIntervalAndStatusIsSet_returnTrue ( ) { confirmation . setCurrentTime ( java . util . Calendar . getInstance ( ) ) ; confirmation . setInterval ( 42 ) ; confirmation . setStatus ( RegistrationStatus . Accepted ) ; boolean isValid = confirmation . validate ( ) ; "<AssertPlaceHolder>" ; } validate ... | org . junit . Assert . assertThat ( isValid , org . hamcrest . CoreMatchers . is ( true ) ) |
testAddThrowableInfoThrowableAttachedButWithoutMessage ( ) { final java . lang . Exception ex2 = net . logstash . logging . formatter . LogstashUtilFormatterTest . buildException ( null , null , new java . lang . StackTraceElement [ 0 ] ) ; record . setThrown ( ex2 ) ; final java . lang . String expected = javax . json... | org . junit . Assert . assertEquals ( expected , result . build ( ) . toString ( ) ) |
testReturnsTrueWhenMatches ( ) { addMessageToContextWithPayload ( "TESTfooTEST" ) ; boolean result = ( ( java . lang . Boolean ) ( wildcardFunction . call ( new java . lang . Object [ ] { "TEST*TEST" } , context ) ) ) ; "<AssertPlaceHolder>" ; } call ( java . lang . Object [ ] , org . mule . runtime . api . el . Bindin... | org . junit . Assert . assertTrue ( result ) |
shouldParseFixedLengthBytesMatcher ( ) { java . lang . String scriptFragment = "[0..25]" ; org . kaazing . k3po . lang . internal . parser . ScriptParserImpl parser = new org . kaazing . k3po . lang . internal . parser . ScriptParserImpl ( ) ; org . kaazing . k3po . lang . internal . ast . matcher . AstFixedLengthBytes... | org . junit . Assert . assertEquals ( expected , actual ) |
testGetScriptFileWithPresentInvalidScript ( ) { edu . illinois . library . cantaloupe . config . Configuration config = edu . illinois . library . cantaloupe . config . Configuration . getInstance ( ) ; config . setProperty ( Key . DELEGATE_SCRIPT_PATHNAME , edu . illinois . library . cantaloupe . test . TestUtil . get... | org . junit . Assert . assertNotNull ( file ) |
shouldOutputStackTraceStdOutAndStdErrOfFailingTest ( ) { com . facebook . buck . event . listener . TestResultFormatter formatter = createNoisyFormatter ( ) ; com . facebook . buck . test . TestCaseSummary summary = new com . facebook . buck . test . TestCaseSummary ( "com.example.FooTest" , com . google . common . col... | org . junit . Assert . assertEquals ( expected , toString ( builder ) ) |
deveObterTotalComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfo notaInfo = new com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfo ( ) ; final com . fincatto . documentofiscal . nfe400 . classes . nota . NFNotaInfoTotal total = com . fincatto . documen... | org . junit . Assert . assertEquals ( total , notaInfo . getTotal ( ) ) |
testGetFilterClassNameForNonExistingFilter ( ) { final org . dom4j . Document webXml = org . jivesoftware . util . WebXmlUtils . asDocument ( new java . io . File ( org . jivesoftware . util . WebXmlUtilsTest . class . getResource ( "/org/jivesoftware/util/test-web.xml" ) . toURI ( ) ) ) ; final java . lang . String fi... | org . junit . Assert . assertNull ( result ) |
beansCanContainLists ( ) { com . google . firebase . database . MapperTest . ListBean bean = com . google . firebase . database . MapperTest . deserialize ( "{'values':<sp>['foo',<sp>'bar']}" , com . google . firebase . database . MapperTest . ListBean . class ) ; "<AssertPlaceHolder>" ; } deserialize ( java . lang . S... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( "foo" , "bar" ) , bean . values ) |
testEquals ( ) { "<AssertPlaceHolder>" ; } getCollection ( ) { return this . collection ; } | org . junit . Assert . assertEquals ( this . getCollection ( ) , this . getCollection ( ) ) |
matches ( ) { org . openscience . cdk . isomorphism . matchers . smarts . SmallestRingAtom matcher = new org . openscience . cdk . isomorphism . matchers . smarts . SmallestRingAtom ( 5 , mock ( org . openscience . cdk . interfaces . IChemObjectBuilder . class ) ) ; org . openscience . cdk . interfaces . IAtom atom = m... | org . junit . Assert . assertTrue ( matcher . matches ( atom ) ) |
testRetrieveFromCache_withValidInput ( ) { final com . valkryst . VTerminal . misc . ImageCache cache = new com . valkryst . VTerminal . misc . ImageCache ( font ) ; final java . awt . Image image = cache . retrieve ( new com . valkryst . VTerminal . Tile ( 'A' ) ) ; "<AssertPlaceHolder>" ; } retrieve ( com . valkryst ... | org . junit . Assert . assertNotNull ( image ) |
testReadJsonReaderNull ( ) { world . bentobox . bentobox . database . json . adapters . FlagAdapter fa = new world . bentobox . bentobox . database . json . adapters . FlagAdapter ( plugin ) ; com . google . gson . stream . JsonReader reader = mock ( com . google . gson . stream . JsonReader . class ) ; org . mockito .... | org . junit . Assert . assertNull ( flag ) |
testSuccess ( ) { com . alibaba . craftsman . dto . MiscMetricAddCmd miscMetricAddCmd = new com . alibaba . craftsman . dto . MiscMetricAddCmd ( ) ; com . alibaba . craftsman . dto . clientobject . MiscMetricCO miscMetricCO = new com . alibaba . craftsman . dto . clientobject . MiscMetricCO ( ) ; miscMetricCO . setOwne... | org . junit . Assert . assertTrue ( response . isSuccess ( ) ) |
testValidPictureNullMsgInTheEnd ( ) { java . lang . String picture = "fm" ; org . zeromq . ZMsg msg = pic . msgBinaryPicture ( picture , new org . zeromq . ZFrame ( "My<sp>frame" ) , null ) ; "<AssertPlaceHolder>" ; } getLast ( ) { return frames . peekLast ( ) ; } | org . junit . Assert . assertThat ( msg . getLast ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) ) |
tesNegativeInfinity ( ) { org . apache . commons . math . linear . ArrayRealVector c = new org . apache . commons . math . linear . ArrayRealVector ( new double [ ] { Double . NEGATIVE_INFINITY , Double . NEGATIVE_INFINITY , Double . NEGATIVE_INFINITY } ) ; java . lang . String expected = "{(-Infinity);<sp>(-Infinity);... | org . junit . Assert . assertEquals ( expected , actual ) |
convertToShortNull ( ) { java . lang . Short s = converter . toShort ( null ) ; "<AssertPlaceHolder>" ; } toShort ( java . lang . Long ) { if ( value == null ) { return null ; } if ( ( value > ( Short . MAX_VALUE ) ) || ( value < ( Short . MIN_VALUE ) ) ) { throw new io . atlasmap . api . AtlasConversionException ( jav... | org . junit . Assert . assertNull ( s ) |
withTwoGroups ( ) { treegraph . Digraph digraph = new treegraph . Digraph ( 4 ) ; digraph . addEdge ( 1 , 0 ) ; digraph . addEdge ( 3 , 2 ) ; "<AssertPlaceHolder>" ; } findBuildOrder ( treegraph . Digraph ) { this . digraph = digraph ; onStack = new boolean [ digraph . size ( ) ] ; visited = new boolean [ digraph . siz... | org . junit . Assert . assertEquals ( java . util . Arrays . asList ( 0 , 1 , 2 , 3 ) , s . findBuildOrder ( digraph ) ) |
getId ( ) { "<AssertPlaceHolder>" ; } createInodeDirectory ( ) { return alluxio . master . file . meta . MutableInodeDirectory . create ( 1 , 0 , "test1" , alluxio . master . file . contexts . CreateDirectoryContext . mergeFrom ( alluxio . grpc . CreateDirectoryPOptions . newBuilder ( ) . setMode ( alluxio . master . f... | org . junit . Assert . assertEquals ( 1 , createInodeDirectory ( ) . getId ( ) ) |
testNestedGrouping ( ) { org . apache . parquet . tools . read . SimpleRecord simple = new org . apache . parquet . tools . read . SimpleRecord ( ) ; org . apache . parquet . schema . MessageType schema = new org . apache . parquet . schema . MessageType ( "schema" , new org . apache . parquet . schema . PrimitiveType ... | org . junit . Assert . assertEquals ( expected , actual ) |
should_return_aggregate ( ) { final java . lang . String name = "testReturnAggregate" ; builder . createSimple ( name ) ; java . lang . Long result = dao . findCountByQuery ( name ) ; "<AssertPlaceHolder>" ; } createSimple ( java . lang . String ) { com . ctp . cdi . query . test . domain . Simple result = new com . ct... | org . junit . Assert . assertNotNull ( result ) |
testIsCyclicGraphHasNoCycles ( ) { java . util . List < java . util . List < java . lang . Integer > > adjacencyList = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < 7 ; i ++ ) { adjacencyList . add ( new java . util . LinkedList ( ) ) ; } adjacencyList . get ( 0 ) . addAll ( java . util . Arrays . asList ( 1 ... | org . junit . Assert . assertFalse ( graph . hasCycle ( ) ) |
testGetRelevantAtomContainer_IReaction_IAtom ( ) { java . util . Iterator < org . openscience . cdk . interfaces . IAtomContainer > atomContainers = org . openscience . cdk . tools . manipulator . ReactionManipulator . getAllAtomContainers ( reaction ) . iterator ( ) ; while ( atomContainers . hasNext ( ) ) { org . ope... | org . junit . Assert . assertEquals ( container , org . openscience . cdk . tools . manipulator . ReactionManipulator . getRelevantAtomContainer ( reaction , anAtom ) ) |
testConcatLongArrays ( ) { long [ ] a = new long [ ] { 1 , 2 , 3 } ; long [ ] b = new long [ ] { 4 , 5 , 6 } ; long [ ] concat = new long [ ] { 1 , 2 , 3 , 4 , 5 , 6 } ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertArrayEquals ( concat , concat ( a , b ) ) |
testAnnotatedInstanceAsyncClient ( ) { org . glassfish . tyrus . server . Server server = startServer ( org . glassfish . tyrus . test . standard_config . bean . TestEndpoint . class ) ; final javax . websocket . ClientEndpointConfig configuration = ClientEndpointConfig . Builder . create ( ) . build ( ) ; org . glassf... | org . junit . Assert . assertEquals ( "hello" , org . glassfish . tyrus . test . standard_config . AnnotatedClientTest . receivedMessage ) |
testSize ( ) { "<AssertPlaceHolder>" ; } createList ( ) { return new io . ebeaninternal . json . ModifyAwareList ( new java . util . ArrayList ( java . util . Arrays . asList ( "A" , "B" , "C" , "D" , "E" ) ) ) ; } | org . junit . Assert . assertEquals ( 5 , createList ( ) . size ( ) ) |
testPackFloatNaN ( ) { final float k = Float . NaN ; final char r = com . jogamp . opengl . math . Binary16 . packFloat ( k ) ; "<AssertPlaceHolder>" ; } isNaN ( char ) { final int e = com . jogamp . opengl . math . Binary16 . unpackGetExponentUnbiased ( k ) ; final int s = com . jogamp . opengl . math . Binary16 . unp... | org . junit . Assert . assertTrue ( com . jogamp . opengl . math . Binary16 . isNaN ( r ) ) |
canInvokeSubprocessMethod ( ) { java . util . concurrent . Callable < java . lang . String > subprocess = new org . neo4j . test . SubProcessTest . TestingProcess ( ) . start ( org . neo4j . test . SubProcessTest . MESSAGE ) ; try { "<AssertPlaceHolder>" ; } finally { org . neo4j . test . SubProcess . stop ( subprocess... | org . junit . Assert . assertEquals ( org . neo4j . test . SubProcessTest . MESSAGE , subprocess . call ( ) ) |
testGetMaterializeSourceTarget_NotMaterialized_HasOutput ( ) { org . apache . crunch . impl . mr . collect . PCollectionImpl < java . lang . String > pcollection = mock ( org . apache . crunch . impl . mr . collect . PCollectionImpl . class ) ; org . apache . crunch . io . ReadableSourceTarget < java . lang . String > ... | org . junit . Assert . assertEquals ( readableSourceTarget , pipeline . getMaterializeSourceTarget ( pcollection ) ) |
testNewPDBAtom_String_Point3D ( ) { org . openscience . cdk . interfaces . IChemObjectBuilder builder = org . openscience . cdk . AbstractChemObjectBuilderTest . rootObject . getBuilder ( ) ; org . openscience . cdk . interfaces . IPDBAtom atom = builder . newInstance ( org . openscience . cdk . interfaces . IPDBAtom .... | org . junit . Assert . assertNotNull ( atom ) |
isHibernate3SupportAvailable ( ) { "<AssertPlaceHolder>" ; } isHibernate3SupportAvailable ( ) { org . junit . Assert . assertFalse ( org . springframework . flex . config . RuntimeEnvironment . isHibernate3SupportAvailable ( ) ) ; } | org . junit . Assert . assertTrue ( org . springframework . flex . config . RuntimeEnvironment . isHibernate3SupportAvailable ( ) ) |
testAbsoluteDuplicateEdgeAlreadyPresentRollback ( ) { com . orientechnologies . orient . core . metadata . schema . OClass clazz = db . getMetadata ( ) . getSchema ( ) . createClass ( "Test" ) ; clazz . setSuperClass ( E ) ; clazz . createProperty ( "in" , OType . LINK ) ; clazz . createProperty ( "out" , OType . LINK ... | org . junit . Assert . assertEquals ( 0 , res . size ( ) ) |
empty_mapping ( ) { com . groupon . lex . metrics . timeseries . TimeSeriesMetricDeltaSet tsd = empty . map ( ( x ) -> x ) ; "<AssertPlaceHolder>" ; } isEmpty ( ) { return ( begin ) == ( end ) ; } | org . junit . Assert . assertTrue ( tsd . isEmpty ( ) ) |
testQuery ( ) { java . lang . StringBuilder script = new java . lang . StringBuilder ( ) ; script . append ( "begin\n" ) ; script . append ( "let<sp>$a<sp>=<sp>select<sp>from<sp>foo\n" ) ; script . append ( "commit\n" ) ; script . append ( "return<sp>$a\n" ) ; com . orientechnologies . orient . core . sql . List < com ... | org . junit . Assert . assertEquals ( qResult . size ( ) , 3 ) |
testAsMap ( ) { final org . apache . logging . log4j . core . config . AppenderControlArraySet set = new org . apache . logging . log4j . core . config . AppenderControlArraySet ( ) ; final org . apache . logging . log4j . core . config . AppenderControl [ ] controls = new org . apache . logging . log4j . core . config... | org . junit . Assert . assertEquals ( expected , set . asMap ( ) ) |
testSubsetMatchLargeReOrdered ( ) { final java . lang . String query1 = "" + ( ( ( ( ( ( ( ( ( ( "SELECT<sp>?a<sp>?b<sp>?c<sp>?d<sp>?e<sp>?f<sp>?g<sp>?h" + "{" ) + "<sp>?a<sp><uri:p0><sp>?b<sp>." ) + "<sp>OPTIONAL{?b<sp><uri:p2><sp>?c.<sp>?c<sp><uri:p1><sp>?d}<sp>.<sp>" ) + "<sp>OPTIONAL{?b<sp><uri:p3><sp>?e.<sp>?e<sp>... | org . junit . Assert . assertEquals ( true , validatePcj ( te1 , unOpt , externalList , unMatchedNodes ) ) |
testGetStyleForMetacardDoubleAttribute ( ) { java . lang . Double testDouble = java . lang . Double . valueOf ( "2" ) ; ddf . catalog . data . Metacard metacard = new org . codice . ddf . spatial . kml . transformer . MockMetacard ( AttributeFormat . DOUBLE . toString ( ) , testDouble ) ; org . codice . ddf . spatial .... | org . junit . Assert . assertThat ( mapper . getStyleForMetacard ( metacard ) , org . hamcrest . Matchers . is ( org . codice . ddf . spatial . kml . transformer . TestKmlStyleMap . DEFAULT_STYLE_URL ) ) |
getEnd ( ) { "<AssertPlaceHolder>" ; } betweenMondayAndFriday ( ) { org . junit . Assert . assertThat ( net . time4j . range . SpanOfWeekdays . betweenMondayAndFriday ( ) , org . hamcrest . CoreMatchers . is ( net . time4j . range . SpanOfWeekdays . between ( Weekday . MONDAY , Weekday . FRIDAY ) ) ) ; } | org . junit . Assert . assertThat ( net . time4j . range . SpanOfWeekdays . betweenMondayAndFriday ( ) . getEnd ( ) , org . hamcrest . CoreMatchers . is ( Weekday . FRIDAY ) ) |
testContainmentVsReference_06 ( ) { org . eclipse . xtend2 . lib . StringConcatenation _builder = new org . eclipse . xtend2 . lib . StringConcatenation ( ) ; _builder . append ( "grammar<sp>test<sp>with<sp>org.eclipse.xtext.common.Terminals" ) ; _builder . newLine ( ) ; _builder . append ( "import<sp>\'http://www.ecli... | org . junit . Assert . assertEquals ( resource . getErrors ( ) . toString ( ) , 1 , resource . getErrors ( ) . size ( ) ) |
testConnectionBuilderWithOneOutboundConnection ( ) { com . streamreduce . core . model . User testUser = new com . streamreduce . core . model . User . Builder ( ) . username ( "maynard" ) . account ( new com . streamreduce . core . model . Account . Builder ( ) . name ( "Tool" ) . build ( ) ) . build ( ) ; com . strea... | org . junit . Assert . assertEquals ( 1 , c . getOutboundConfigurations ( ) . size ( ) ) |
testTransformUtilizesRelevantCounterTransformerForNonUserCounters ( ) { java . util . Map < java . lang . String , org . apache . beam . runners . dataflow . worker . fn . control . MonitoringInfoToCounterUpdateTransformer > genericTransformers = new java . util . HashMap ( ) ; final java . lang . String validUrn = "ur... | org . junit . Assert . assertSame ( expectedResult , result ) |
testColumnAccess_3x3 ( ) { org . la4j . matrix . Matrix a = m ( org . la4j . matrix . MatrixTest . a ( 1.0 , 0.0 , 0.0 ) , org . la4j . matrix . MatrixTest . a ( 0.0 , 5.0 , 0.0 ) , org . la4j . matrix . MatrixTest . a ( 0.0 , 0.0 , 9.0 ) ) ; org . la4j . matrix . Matrix b = m ( org . la4j . matrix . MatrixTest . a ( 1... | org . junit . Assert . assertEquals ( b , a ) |
testShouldReturnIndexWriterFromLRUCache ( ) { org . neo4j . kernel . configuration . Config config = org . neo4j . kernel . configuration . Config . defaults ( ) ; dataSource = life . add ( getLuceneDataSource ( config ) ) ; org . neo4j . index . impl . lucene . explicit . IndexIdentifier identifier = org . neo4j . ind... | org . junit . Assert . assertSame ( writer , dataSource . getIndexSearcher ( identifier ) . getWriter ( ) ) |
shouldStillZeroAfterNoMoreCharge ( ) { scores = new com . codenjoy . dojo . minesweeper . services . Scores ( 0 , parameters ) ; minesweeperNoMoreCharge ( ) ; "<AssertPlaceHolder>" ; } getScore ( ) { return score ; } | org . junit . Assert . assertEquals ( 0 , scores . getScore ( ) ) |
testGetValues ( ) { org . semanticweb . owlapi . model . IRI iri = org . semanticweb . owlapi . model . IRI . create ( ( ( base ) + "simple.owl#test1" ) ) ; org . semanticweb . owlapi . model . OWLOntology simple = loadOntology ( "/simple.owl" ) ; org . semanticweb . owlapi . model . OWLDataFactory df = simple . getOWL... | org . junit . Assert . assertEquals ( expected , actual ) |
unionLiftInternalTest1 ( ) { it . unibz . inf . ontop . iq . executor . IntermediateQueryBuilder expectedBuilder = createQueryBuilder ( it . unibz . inf . ontop . iq . executor . DB_METADATA ) ; it . unibz . inf . ontop . iq . executor . InnerJoinNode joinNodeExpected = it . unibz . inf . ontop . iq . executor . IQ_FAC... | org . junit . Assert . assertTrue ( it . unibz . inf . ontop . iq . equivalence . IQSyntacticEquivalenceChecker . areEquivalent ( query , expectedQuery ) ) |
getSessionResource_authenticated_asNonSystemResource ( ) { final char [ ] password = generateUniquePassword ( ) ; final com . acciente . oacc . Resource authenticatableResource = generateAuthenticatableResource ( password ) ; accessControlContext . authenticate ( authenticatableResource , com . acciente . oacc . Passwo... | org . junit . Assert . assertThat ( authenticatedResource , org . hamcrest . CoreMatchers . is ( authenticatableResource ) ) |
should_LngLatAlt_equals_without_alt ( ) { org . geojson . LngLatAlt first = new org . geojson . LngLatAlt ( 14.0 , 13.0 ) ; org . geojson . LngLatAlt second = new org . geojson . LngLatAlt ( 14.0 , 13.0 ) ; "<AssertPlaceHolder>" ; } | org . junit . Assert . assertEquals ( second , first ) |
simpleTestAES192 ( ) { org . jscep . message . PkiMessage < ? > actual = encodeAndDecodeEnvelope ( "AES_192" ) ; "<AssertPlaceHolder>" ; } encodeAndDecodeEnvelope ( java . lang . String ) { java . security . KeyPair caPair = java . security . KeyPairGenerator . getInstance ( "RSA" ) . generateKeyPair ( ) ; java . secur... | org . junit . Assert . assertEquals ( message , actual ) |
leestAfnemerindicatiesVoorSchrijvenNietBestaandPersoon ( ) { final java . lang . Integer persoonId = 123 ; final java . util . Set < ? > indicaties = repository . leesGenormaliseerdModelVoorNieuweBlob ( persoonId ) ; "<AssertPlaceHolder>" ; } size ( ) { return elementen . size ( ) ; } | org . junit . Assert . assertThat ( indicaties . size ( ) , org . hamcrest . Matchers . is ( 0 ) ) |
iterateValuesAfterStopOffsets ( ) { java . util . List < org . apache . kafka . clients . consumer . ConsumerRecord < java . lang . String , java . lang . String > > returnedRecords = new java . util . LinkedList ( ) ; for ( Map . Entry < org . apache . kafka . common . TopicPartition , java . lang . Long > entry : sto... | org . junit . Assert . assertThat ( count , org . hamcrest . core . Is . is ( 0 ) ) |
testFieldFloat ( ) { @ org . simpleflatmapper . reflect . test . asm . SuppressWarnings ( "unchecked" ) org . simpleflatmapper . reflect . primitive . FloatGetter < org . simpleflatmapper . test . beans . DbPrimitiveObjectFields > getter = ( ( org . simpleflatmapper . reflect . primitive . FloatGetter < org . simplefla... | org . junit . Assert . assertEquals ( 3.14F , getter . getFloat ( objectField ) , 0 ) |
testGetQueryPropertyNames ( ) { com . vmware . xenon . common . ServiceDocumentDescription desc = com . vmware . xenon . common . ServiceDocumentDescription . Builder . create ( ) . buildDescription ( com . vmware . xenon . services . common . ExampleService . ExampleServiceState . class ) ; java . util . Set < java . ... | org . junit . Assert . assertEquals ( expectedPropertyNames , queryPropertyNames ) |
test_isForwardEnabled ( ) { boolean result = browser . isForwardEnabled ( ) ; "<AssertPlaceHolder>" ; } isForwardEnabled ( ) { return canGoForward ; } | org . junit . Assert . assertFalse ( result ) |
testGetItemBorder ( ) { org . eclipse . rap . rwt . theme . BoxDimensions actual = org . eclipse . rap . rwt . internal . theme . TabFolderThemeAdapter_Test . getThemeAdapter ( folder ) . getItemBorder ( item ) ; "<AssertPlaceHolder>" ; } getItemBorder ( org . eclipse . swt . widgets . TabItem ) { return getCssBorder (... | org . junit . Assert . assertEquals ( new org . eclipse . rap . rwt . theme . BoxDimensions ( 1 , 1 , 1 , 1 ) , actual ) |
testGetTruststorePassword ( ) { org . apache . ambari . server . configuration . ComponentSSLConfiguration sslConfiguration = org . apache . ambari . server . configuration . ComponentSSLConfigurationTest . getConfiguration ( "tspath" , "tspass" , "tstype" , true ) ; "<AssertPlaceHolder>" ; } getTruststorePassword ( ) ... | org . junit . Assert . assertEquals ( "tspass" , sslConfiguration . getTruststorePassword ( ) ) |
shouldSaveXMLConfiguration ( ) { org . kitodo . production . editor . XMLEditorTest . xmlEditor . loadXMLConfiguration ( KitodoConfigFile . PROJECT_CONFIGURATION . getName ( ) ) ; org . kitodo . production . editor . XMLEditorTest . xmlEditor . setXMLConfiguration ( org . kitodo . production . editor . XMLEditorTest . ... | org . junit . Assert . assertEquals ( org . kitodo . production . editor . XMLEditorTest . SAVE_XML , savedString ) |
testInstancesWithSameContentsHaveSameHashCodes ( ) { final org . springframework . roo . addon . gwt . request . GwtRequestMetadata instance1 = new org . springframework . roo . addon . gwt . request . GwtRequestMetadata ( org . springframework . roo . addon . gwt . request . GwtRequestMetadataTest . MID_1 , org . spri... | org . junit . Assert . assertTrue ( ( ( instance1 . hashCode ( ) ) == ( instance2 . hashCode ( ) ) ) ) |
testStyles ( ) { for ( tec . units . ri . format . UnitStyle style : tec . units . ri . format . UnitStyle . values ( ) ) { "<AssertPlaceHolder>" ; } } | org . junit . Assert . assertNotNull ( style . name ( ) ) |
timesVectorTestSimple ( ) { double [ ] [ ] A = new double [ ] [ ] { new double [ ] { 1.0 , 1.0 } , new double [ ] { 2.0 , 2.0 } } ; double [ ] x = new double [ ] { 3.0 , 4.0 } ; double [ ] solution = new double [ ] { 7.0 , 14.0 } ; com . workday . insights . matrix . InsightsMatrix im = new com . workday . insights . m... | org . junit . Assert . assertTrue ( ( ( solved . get ( i ) ) == ( solution [ i ] ) ) ) |
listRuntimeConfigurationServerTest ( ) { java . lang . String [ ] data = getConfigurationData ( "server" ) ; "<AssertPlaceHolder>" ; } getConfigurationData ( java . lang . String ) { java . lang . String [ ] command = ( target == null ) ? new java . lang . String [ ] { "asadmin" , "list-batch-runtime-configuration" } :... | org . junit . Assert . assertTrue ( ( ( ( ( data . length ) == 2 ) && ( ( data [ 0 ] ) != null ) ) && ( ( data [ 1 ] ) != null ) ) ) |
evaluateEqShouldProperlyCallEqualityOperatorsEvaluator ( ) { org . apache . metron . stellar . dsl . Token < java . lang . Double > left = mock ( org . apache . metron . stellar . dsl . Token . class ) ; when ( left . getValue ( ) ) . thenReturn ( 1.0 ) ; org . apache . metron . stellar . dsl . Token < java . lang . Do... | org . junit . Assert . assertTrue ( evaluated . getValue ( ) ) |
testFindItemByDataTypeHashWhenListItemIsNotFound ( ) { doReturn ( emptyList ( ) ) . when ( dataTypeList ) . getItems ( ) ; final java . util . Optional < org . kie . workbench . common . dmn . client . editors . types . listview . DataTypeListItem > item = dataTypeList . findItemByDataTypeHash ( "tCity.name" ) ; "<Asse... | org . junit . Assert . assertFalse ( item . isPresent ( ) ) |
testGetORB ( ) { org . omg . CORBA . ORB _orb = ( ( org . omg . CORBA . ORB ) ( picoContainer_ . getComponentInstance ( org . omg . CORBA . ORB . class ) ) ) ; "<AssertPlaceHolder>" ; } getComponentInstance ( org . picocontainer . PicoContainer ) { org . omg . CORBA . ORB orb = ( ( org . omg . CORBA . ORB ) ( container... | org . junit . Assert . assertNotNull ( _orb ) |
testGetStartValue3 ( ) { org . jfree . data . gantt . TaskSeriesCollection c = new org . jfree . data . gantt . TaskSeriesCollection ( ) ; org . jfree . data . gantt . TaskSeries s = new org . jfree . data . gantt . TaskSeries ( "Series<sp>1" ) ; s . add ( new org . jfree . data . gantt . Task ( "Task<sp>with<sp>null<s... | org . junit . Assert . assertTrue ( ( millis == null ) ) |
getInitializeCustomizeLandingpage ( ) { model . setInitialized ( false ) ; model . setLandingpageType ( "any_mp_id" ) ; given ( landingpageConfigurationService ( ) . getMarketplaceSelections ( ) ) . willReturn ( new java . util . ArrayList < org . oscm . internal . components . POMarketplace > ( ) ) ; ctrl . getInitial... | org . junit . Assert . assertTrue ( model . isInitialized ( ) ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.