input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testFilteredWithNoPaths ( ) { java . util . Map < java . lang . String , java . lang . String > values = new java . util . HashMap ( ) ; values . put ( "foo/bar" , "baz" ) ; final org . microbule . config . api . Config config = new org . microbule . config . core . MapConfig ( values , "/" ) . filtered ( ) ; "<AssertP...
org . junit . Assert . assertEquals ( "baz" , config . filtered ( "foo" ) . value ( "bar" ) . get ( ) )
testNullStapel ( ) { "<AssertPlaceHolder>" ; } converteerKindStapels ( java . util . List ) { if ( brpStapels == null ) { return java . util . Collections . emptyList ( ) ; } final java . util . List < nl . bzk . migratiebrp . conversie . model . lo3 . Lo3Stapel < nl . bzk . migratiebrp . conversie . model . lo3 . cate...
org . junit . Assert . assertTrue ( subject . converteerKindStapels ( null ) . isEmpty ( ) )
testIsStructureWhenItReturnsTrue ( ) { final org . kie . workbench . common . dmn . client . editors . types . common . DataType dataType = mock ( org . kie . workbench . common . dmn . client . editors . types . common . DataType . class ) ; final java . lang . String structure = "Structure" ; when ( dataTypeManager ....
org . junit . Assert . assertTrue ( handler . isStructure ( dataType ) )
testBadMimeType ( ) { final net . violet . platform . datamodel . Lang frLang = getSiteFrLang ( ) ; final net . violet . platform . datamodel . User theOwner = new net . violet . platform . datamodel . mock . UserMock ( 42 , net . violet . common . StringShop . EMPTY_STRING , net . violet . common . StringShop . EMPTY_...
org . junit . Assert . assertNull ( theResult )
testReadWriteFile ( ) { java . io . File tmpFile = new java . io . File ( java . lang . System . getProperty ( "java.io.tmpdir" ) , ( ( "ndarraytmp-" + ( java . util . UUID . randomUUID ( ) . toString ( ) ) ) + "<sp>.bin" ) ) ; tmpFile . deleteOnExit ( ) ; org . nd4j . linalg . api . ndarray . INDArray rand = org . nd4...
org . junit . Assert . assertEquals ( rand , fromDisk )
saveAndRetrieveBasicResource ( ) { java . lang . String input = org . apache . commons . io . IOUtils . toString ( getClass ( ) . getResourceAsStream ( "/basic-stu3.xml" ) , StandardCharsets . UTF_8 ) ; java . lang . String respString = ourClient . transaction ( ) . withBundle ( input ) . prettyPrint ( ) . execute ( ) ...
org . junit . Assert . assertEquals ( 1 , exts . size ( ) )
isGreaterThanQuantityTest ( ) { java . util . List < javax . measure . Quantity < javax . measure . quantity . Time > > times = new java . util . ArrayList ( ) ; times . add ( timeFactory . create ( 30 , Units . HOUR ) ) ; times . add ( timeFactory . create ( 24 , Units . HOUR ) ) ; times . add ( timeFactory . create (...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 1 ) , java . lang . Integer . valueOf ( list . size ( ) ) )
canWritePieceInMultiFileMode ( ) { java . lang . String baseDir = this . getClass ( ) . getResource ( "/" ) . getFile ( ) ; baseDir = java . net . URLDecoder . decode ( baseDir , "utf-8" ) ; baseDir = new java . io . File ( baseDir ) . getPath ( ) ; files . TorrentFile torrent = mock ( files . TorrentFile . class ) ; j...
org . junit . Assert . assertEquals ( "test" , s )
testExistingHeader ( ) { io . grpc . Metadata headers = new io . grpc . Metadata ( ) ; java . lang . String overrideValue = "override-value" ; headers . put ( com . google . cloud . bigtable . grpc . io . GoogleCloudResourcePrefixInterceptor . GRPC_RESOURCE_PREFIX_KEY , overrideValue ) ; underTest . updateHeaders ( hea...
org . junit . Assert . assertEquals ( overrideValue , headers . get ( com . google . cloud . bigtable . grpc . io . GoogleCloudResourcePrefixInterceptor . GRPC_RESOURCE_PREFIX_KEY ) )
testSerializesAndDeserializes ( ) { org . calrissian . mango . domain . event . Event event = org . calrissian . mango . domain . event . EventBuilder . create ( "" , "id" , java . lang . System . currentTimeMillis ( ) ) . attr ( new org . calrissian . mango . domain . Attribute ( "key" , "val" , com . google . common ...
org . junit . Assert . assertEquals ( event , actual )
whenRouteStateIsSetWithGenericMethodAndCapacity_itMustBeSetCorrectly ( ) { 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 ....
org . junit . Assert . assertEquals ( 500 , getCap . get ( 0 ) )
testCloseSubscriberUnsubscribeException ( ) { transport . dispatcher = mockDispatcher ; org . mockito . Mockito . doThrow ( new java . lang . IllegalStateException ( "Problem" ) ) . when ( mockDispatcher ) . unsubscribe ( formattedSubject ) ; transport . unsubscribe ( ) ; "<AssertPlaceHolder>" ; } isSubscribed ( ) { re...
org . junit . Assert . assertFalse ( transport . isSubscribed ( ) )
testGetLongAttValue2 ( ) { final java . lang . String s = "<test<sp>attr='1234567890'/>" ; final org . w3c . dom . Document doc = org . oscm . converter . XMLConverter . convertToDocument ( s , false ) ; final long value = org . oscm . converter . XMLConverter . getLongAttValue ( doc . getDocumentElement ( ) , "none" )...
org . junit . Assert . assertEquals ( 0 , value )
testNotFound ( ) { com . db4o . omplus . connection . test . File file = nonExistentFile ( ) ; try { new com . db4o . omplus . connection . test . FileConnectionParams ( file . getAbsolutePath ( ) ) . connect ( ) ; org . junit . Assert . fail ( ) ; } catch ( com . db4o . omplus . connection . test . DBConnectException ...
org . junit . Assert . assertEquals ( file . getAbsolutePath ( ) , cause . getMessage ( ) )
testTransferFileToOutputStreamWithDeflate ( ) { java . io . File f = java . io . File . createTempFile ( "test" , "test" ) ; java . net . URL inUrl = com . cedarsoftware . util . TestIOUtilities . class . getClassLoader ( ) . getResource ( "test.inflate" ) ; java . io . FileInputStream in = new java . io . FileInputStr...
org . junit . Assert . assertArrayEquals ( expectedResult . toByteArray ( ) , actualResult . toByteArray ( ) )
testNonExistingHashMapAttributeWithoutStrictVariables ( ) { com . mitchellbosecke . pebble . PebbleEngine pebble = new com . mitchellbosecke . pebble . PebbleEngine . Builder ( ) . loader ( new com . mitchellbosecke . pebble . loader . StringLoader ( ) ) . strictVariables ( false ) . build ( ) ; java . lang . String so...
org . junit . Assert . assertEquals ( "" , writer . toString ( ) )
testLogin ( ) { com . flickr4java . flickr . test . TestInterface iface = flickr . getTestInterface ( ) ; com . flickr4java . flickr . people . User user = iface . login ( ) ; "<AssertPlaceHolder>" ; } login ( ) { java . util . Map < java . lang . String , java . lang . Object > parameters = new java . util . HashMap <...
org . junit . Assert . assertNotNull ( user )
testFindByPrimaryKeyExisting ( ) { com . liferay . portal . kernel . model . MembershipRequest newMembershipRequest = addMembershipRequest ( ) ; com . liferay . portal . kernel . model . MembershipRequest existingMembershipRequest = _persistence . findByPrimaryKey ( newMembershipRequest . getPrimaryKey ( ) ) ; "<Assert...
org . junit . Assert . assertEquals ( existingMembershipRequest , newMembershipRequest )
testIfCustomIsFalseAndGlobalIsTrue ( ) { org . apache . cxf . message . Message message = org . easymock . EasyMock . createMock ( org . apache . cxf . message . MessageImpl . class ) ; org . easymock . EasyMock . expect ( message . getContextualProperty ( org . talend . esb . sam . agent . wiretap . WireTapHelperTest ...
org . junit . Assert . assertEquals ( false , result )
testParseDateNode ( ) { java . util . Date actual = ( ( java . util . Date ) ( parseParamNode ( "<param><value><dateTime.iso8601>19980717T14:08:55</dateTime.iso8601></value></param>" ) ) ) ; java . util . Date expected = org . krakenapps . xmlrpc . DateUtil . create ( 1998 , 7 , 17 , 14 , 8 , 55 ) ; "<AssertPlaceHolder...
org . junit . Assert . assertEquals ( expected , actual )
testDecodeSubSequence ( ) { final int start = 4 ; final int end = 14 ; final java . lang . String sequence = "QEFHRKPQQPHKDGNFGAD" ; final java . lang . String alignment = "HRK-----KDg" ; ^ 14 final java . lang . String encoding = "3M5D2M1I" ; uk . ac . ebi . interpro . scan . model . raw . alignment . AlignmentEncoder...
org . junit . Assert . assertEquals ( alignment , encoder . decode ( sequence , encoding , start , end ) )
testCreatePropertyOK ( ) { org . ff4j . property . util . PropertyJsonBean jsonBean = new org . ff4j . property . util . PropertyJsonBean ( new org . ff4j . property . PropertyString ( "p1" , "v1" ) ) ; "<AssertPlaceHolder>" ; } createProperty ( org . ff4j . property . util . PropertyJsonBean ) { if ( pgb == null ) ret...
org . junit . Assert . assertNotNull ( org . ff4j . property . util . PropertyFactory . createProperty ( jsonBean ) )
testDefaultRuleObtainsOneColumn ( ) { com . eclipsesource . tabris . passepartout . FluidGridData data = new com . eclipsesource . tabris . passepartout . FluidGridData ( ) ; com . eclipsesource . tabris . passepartout . Rule rule = data . getRules ( ) . get ( 0 ) ; com . eclipsesource . tabris . passepartout . interna...
org . junit . Assert . assertEquals ( 1 , instruction . getColumns ( ) )
testInitiateDownloadSingleSampleFile ( ) { org . finra . herd . model . api . xml . BusinessObjectDefinitionSampleDataFileKey businessObjectDefinitionSampleDataFileKey = new org . finra . herd . model . api . xml . BusinessObjectDefinitionSampleDataFileKey ( BDEF_NAMESPACE , BDEF_NAME , DIRECTORY_PATH , FILE_NAME ) ; o...
org . junit . Assert . assertEquals ( response , result )
isOnlyNameChanged_False ( ) { org . oscm . internal . vo . VOTriggerDefinition voTriggerDefinition = new org . oscm . internal . vo . VOTriggerDefinition ( ) ; voTriggerDefinition . setName ( "name1" ) ; voTriggerDefinition . setTarget ( "target" ) ; voTriggerDefinition . setTargetType ( TriggerTargetType . WEB_SERVICE...
org . junit . Assert . assertFalse ( result )
testLogMessageSubstringFilter ( ) { org . opennms . web . event . filter . LogMessageSubstringFilter filter = new org . opennms . web . event . filter . LogMessageSubstringFilter ( "is<sp>a<sp>test" ) ; org . opennms . web . event . Event [ ] events = getMatchingDaoEvents ( filter ) ; "<AssertPlaceHolder>" ; } getMatch...
org . junit . Assert . assertEquals ( 1 , events . length )
testEndNoneEventHashCode ( ) { org . kie . workbench . common . stunner . bpmn . definition . BusinessRuleTask a = new org . kie . workbench . common . stunner . bpmn . definition . BusinessRuleTask ( ) ; org . kie . workbench . common . stunner . bpmn . definition . BusinessRuleTask b = new org . kie . workbench . com...
org . junit . Assert . assertEquals ( a . hashCode ( ) , b . hashCode ( ) )
isLesserThanOrEqualToTest ( ) { java . util . List < javax . measure . Quantity < javax . measure . quantity . Time > > times = new java . util . ArrayList ( getTimes ( ) ) ; times . add ( timeFactory . create ( 30 , Units . HOUR ) ) ; java . util . List < javax . measure . Quantity < javax . measure . quantity . Time ...
org . junit . Assert . assertEquals ( java . lang . Integer . valueOf ( 2 ) , java . lang . Integer . valueOf ( list . size ( ) ) )
testGetKey ( ) { for ( final java . lang . Character symbol : com . dell . mensa . impl . generic . EdgeTest . symbols ) { for ( final int state : com . dell . mensa . impl . generic . EdgeTest . states ) { final com . dell . mensa . impl . generic . Edge < java . lang . Character > edge = com . dell . mensa . impl . g...
org . junit . Assert . assertEquals ( symbol , edge . getSymbol ( ) )
test ( ) { org . ebayopensource . fido . uaf . msg . AuthenticationRequest authRequest = gson . fromJson ( getTestAuthRequest ( ) , org . ebayopensource . fido . uaf . msg . AuthenticationRequest . class ) ; "<AssertPlaceHolder>" ; logger . info ( gson . toJson ( authRequest ) ) ; }
org . junit . Assert . assertNotNull ( authRequest )
constructor ( ) { Counter inc = new Counter ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( inc )
testCEFFormatting ( ) { final java . lang . String jsonInput = "{\"perpetratorID\":\"per|son\",\"perpetratorDN\":\"cn=per|son,o=org\"," + ( ( ( "\"perpetratorLdapProfile\":\"default\",\"sourceAddress\":\"2001:DB8:D:B8:35cc::/64\",\"sourceHost\":\"ws31222\"," + "\"type\":\"USER\",\"eventCode\":\"ACTIVATE_USER\",\"guid\"...
org . junit . Assert . assertEquals ( expectedOutput , output )
testResolvesLocationUriThenTopic ( ) { java . lang . String location = "a<sp>location" ; org . mockito . Mockito . when ( topicStore . topicFor ( "dbpedia" , location ) ) . thenReturn ( com . metabroadcast . common . base . Maybe . just ( testTopic ) ) ; com . google . common . base . Optional < org . atlasapi . media ...
org . junit . Assert . assertEquals ( testTopic , resolved . get ( ) )
testGetPrivateUrlUserFromRoleAssignmentAndAssigneeSuccess ( ) { edu . harvard . iq . dataverse . authorization . DataverseRole aRole = null ; edu . harvard . iq . dataverse . authorization . users . PrivateUrlUser privateUrlUser = new edu . harvard . iq . dataverse . authorization . users . PrivateUrlUser ( 42 ) ; edu ...
org . junit . Assert . assertNotNull ( privateUrl )
trimGenericsIfNested_A$String_argNull ( ) { java . lang . String returnTypeDef = null ; java . lang . String actual = org . junithelper . core . extractor . MethodMetaExtractor . trimGenericsIfNested ( returnTypeDef ) ; java . lang . String expected = null ; "<AssertPlaceHolder>" ; } trimGenericsIfNested ( java . lang ...
org . junit . Assert . assertEquals ( expected , actual )
should_collapse_simple_leaf_bwd ( ) { int k = 4 ; java . util . List < au . edu . wehi . idsv . debruijn . positional . KmerPathNode > input = new java . util . ArrayList < au . edu . wehi . idsv . debruijn . positional . KmerPathNode > ( ) ; input . add ( KPN ( k , "AAATT" , 1 , 10 , false ) ) ; input . add ( KPN ( k ...
org . junit . Assert . assertEquals ( 1 , result . size ( ) )
testExchangePartitionsYearAndDaySetInPartSpec ( ) { java . util . Map < java . lang . String , java . lang . String > partitionSpecs = new java . util . HashMap ( ) ; partitionSpecs . put ( org . apache . hadoop . hive . metastore . client . TestExchangePartitions . YEAR_COL_NAME , "2017" ) ; partitionSpecs . put ( org...
org . junit . Assert . assertTrue ( partsInDestTable . isEmpty ( ) )
testGetLanguagesWithOffsetAndLimit ( ) { this . repository . deleteAll ( ) ; fillRepositoryRandom ( 6 , ORG2 ) ; java . util . List < java . lang . String > languageNames = fillRepository ( ORG1 ) ; java . util . List < org . zalando . catwatch . backend . model . Language > languageList = generateLanguageList ( langua...
org . junit . Assert . assertThat ( langResponse . length , org . hamcrest . Matchers . equalTo ( limit ) )
checkSupportsAllElements ( ) { "<AssertPlaceHolder>" ; } supports ( java . lang . Class ) { return ( super . supports ( clazz ) ) || ( clazz . isEnum ( ) ) ; }
org . junit . Assert . assertTrue ( provider . supports ( element ) )
when_shipmentroute_loadAtAct1ShouldBe10 ( ) { stateManager . informInsertionStarts ( java . util . Arrays . asList ( shipment_route ) , java . util . Collections . < com . graphhopper . jsprit . core . algorithm . state . Job > emptyList ( ) ) ; com . graphhopper . jsprit . core . algorithm . state . Capacity atAct1 = ...
org . junit . Assert . assertEquals ( 10 , atAct1 . get ( 0 ) )
supports_create_domain ( ) { when ( update . getAction ( ) ) . thenReturn ( Action . CREATE ) ; when ( update . getType ( ) ) . thenReturn ( ObjectType . DOMAIN ) ; "<AssertPlaceHolder>" ; } supports ( net . ripe . db . whois . update . domain . PreparedUpdate ) { return ( update . getAction ( ) . equals ( Action . CRE...
org . junit . Assert . assertThat ( subject . supports ( update ) , is ( true ) )
testCacheHit ( ) { when ( mMemoryCache . get ( mPostprocessedBitmapCacheKey ) ) . thenReturn ( mImageRef2Clone ) ; mMemoryCacheProducer . produceResults ( mConsumer , mProducerContext ) ; verify ( mInputProducer , never ( ) ) . produceResults ( any ( com . facebook . imagepipeline . producers . Consumer . class ) , any...
org . junit . Assert . assertFalse ( mImageRef2Clone . isValid ( ) )
getFunction_builtin_list_members ( ) { com . psddev . dari . util . List < java . lang . String > inputs = com . psddev . dari . util . Arrays . asList ( "1" , "2" , "3" ) ; com . psddev . dari . util . List < java . lang . Integer > expect = com . psddev . dari . util . Arrays . asList ( 1 , 2 , 3 ) ; com . psddev . d...
org . junit . Assert . assertEquals ( expect , output )
shouldProducePlanWhenFullTextSearchingTableWithAtLeastOneSearchableColumn ( ) { schemata = schemataBuilder . addTable ( "someTable" , "column1" , "column2" , "column3" ) . makeSearchable ( "someTable" , "column1" ) . build ( ) ; query = builder . select ( "column1" , "column4" ) . from ( "someTable" ) . where ( ) . sea...
org . junit . Assert . assertThat ( problems . hasErrors ( ) , org . hamcrest . core . Is . is ( true ) )
testExistsQuery ( ) { com . liferay . portal . search . query . ExistsQuery existsQuery = com . liferay . portal . search . query . test . QueriesInstantiationTest . _queries . exists ( "field" ) ; "<AssertPlaceHolder>" ; } exists ( java . lang . String ) { return new com . liferay . portal . search . internal . query ...
org . junit . Assert . assertNotNull ( existsQuery )
testJsonSerialization ( ) { org . batfish . datamodel . collections . NodeInterfacePair nip = new org . batfish . datamodel . collections . NodeInterfacePair ( "host" , "iface" ) ; "<AssertPlaceHolder>" ; } clone ( java . lang . Object , java . lang . Class ) { return org . batfish . common . util . BatfishObjectMapper...
org . junit . Assert . assertThat ( org . batfish . common . util . BatfishObjectMapper . clone ( nip , org . batfish . datamodel . collections . NodeInterfacePair . class ) , org . hamcrest . Matchers . equalTo ( nip ) )
testGetStorageUnitNotificationRegistrationsByNamespace ( ) { org . finra . herd . model . api . xml . StorageUnitNotificationRegistrationKeys storageUnitNotificationRegistrationKeys = new org . finra . herd . model . api . xml . StorageUnitNotificationRegistrationKeys ( notificationRegistrationDaoTestHelper . getExpect...
org . junit . Assert . assertEquals ( storageUnitNotificationRegistrationKeys , resultStorageUnitNotificationRegistrationKeys )
getName ( ) { setUp ( ) ; "<AssertPlaceHolder>" ; System . out . println ( ( "ctx<sp>" + ( ctx ) ) ) ; tearDown ( ) ; } setUp ( ) { super . setUp ( ) ; }
org . junit . Assert . assertNotNull ( ctx )
should_pass ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testDelete ( ) { target . path ( "{name}" ) . resolveTemplate ( "name" , "Howard" ) . request ( ) . delete ( ) ; org . wildfly . samples . javaee7 . arquillian . Employee [ ] list = target . request ( ) . get ( org . wildfly . samples . javaee7 . arquillian . Employee [ ] . class ) ; "<AssertPlaceHolder>" ; } get ( int...
org . junit . Assert . assertEquals ( 3 , list . length )
testClientConsumer ( ) { org . apache . cxf . dosgi . samples . soap . Task task = taskService . get ( 1 ) ; "<AssertPlaceHolder>" ; } getTitle ( ) { return title ; }
org . junit . Assert . assertEquals ( "test" , task . getTitle ( ) )
metadata_xmlAssociationEndRolefalse ( ) { final java . lang . String entryName = "bar/90_contents/odatacol1/00_$metadata.xml" ; final java . lang . String filename = "/00_$metadata_associaton_role_attr_notexist.xml" ; java . net . URL fileUrl = java . lang . ClassLoader . getSystemResource ( ( ( com . fujitsu . dc . te...
org . junit . Assert . assertFalse ( res )
testCrear ( ) { log . debug ( "test<sp>crear<sp>InformeMensual" ) ; mx . edu . um . mateo . general . model . Usuario colportor = obtieneColportor ( ) ; mx . edu . um . mateo . colportor . model . InformeMensual informe = new mx . edu . um . mateo . colportor . model . InformeMensual ( ( ( mx . edu . um . mateo . colpo...
org . junit . Assert . assertNotNull ( informe . getId ( ) )
testIsWicketJavaElement ( ) { long start = java . lang . System . nanoTime ( ) ; final java . util . List < org . eclipse . jdt . internal . core . JavaElement > wicketComponentTypes = qwickie . util . TypeHelper . getWicketComponentTypes ( javaFile ) ; try { "<AssertPlaceHolder>" ; } catch ( org . eclipse . jdt . core...
org . junit . Assert . assertTrue ( qwickie . util . TypeHelper . isWicketJavaElement ( wicketComponentTypes . get ( 0 ) ) )
getException_check_argument ( ) { final com . navercorp . pinpoint . web . vo . callstacks . RecordFactory factory = newRecordFactory ( ) ; com . navercorp . pinpoint . common . server . bo . SpanBo spanBo = new com . navercorp . pinpoint . common . server . bo . SpanBo ( ) ; spanBo . setTransactionId ( new com . naver...
org . junit . Assert . assertNotNull ( exceptionRecord . getArguments ( ) )
testName ( ) { com . sap . core . odata . ref . model . Building build1 = new com . sap . core . odata . ref . model . Building ( 1 , com . sap . core . odata . ref . model . BuildingTest . VALUE_NAME ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( com . sap . core . odata . ref . model . BuildingTest . VALUE_NAME , build1 . getName ( ) )
get ( ) { final org . graylog . plugins . metrics . console . providers . ConsoleReporterProvider provider = new org . graylog . plugins . metrics . console . providers . ConsoleReporterProvider ( new org . graylog . plugins . metrics . console . MetricsConsoleReporterConfiguration ( ) , new com . codahale . metrics . ...
org . junit . Assert . assertNotNull ( reporter )
testGenerateAvro2 ( ) { try { java . lang . String filename = "people.avro" ; edu . isi . karma . rdf . TestAvroRDFGenerator . logger . info ( ( "Loading<sp>avro<sp>file:<sp>" + filename ) ) ; java . io . File tempAvroOutput = java . io . File . createTempFile ( "testgenerateavro2" , "avro" ) ; tempAvroOutput . deleteO...
org . junit . Assert . assertEquals ( 7 , count )
testHadoopCodecFactoryBZip2 ( ) { org . apache . avro . file . CodecFactory hadoopSnappyCodec = org . apache . avro . hadoop . file . HadoopCodecFactory . fromHadoopString ( "org.apache.hadoop.io.compress.BZip2Codec" ) ; org . apache . avro . file . CodecFactory avroSnappyCodec = org . apache . avro . file . CodecFacto...
org . junit . Assert . assertTrue ( hadoopSnappyCodec . getClass ( ) . equals ( avroSnappyCodec . getClass ( ) ) )
testNoWildcards ( ) { com . github . dozermapper . core . vo . FurtherTestObjectPrime prime = mapper . map ( testDataFactory . getInputTestNoWildcardsFurtherTestObject ( ) , com . github . dozermapper . core . vo . FurtherTestObjectPrime . class ) ; com . github . dozermapper . core . vo . FurtherTestObject source = ma...
org . junit . Assert . assertEquals ( prime2 , prime )
testName ( ) { org . apache . commons . math . geometry . euclidean . threed . RotationOrder [ ] orders = new org . apache . commons . math . geometry . euclidean . threed . RotationOrder [ ] { org . apache . commons . math . geometry . euclidean . threed . RotationOrder . XYZ , org . apache . commons . math . geometry...
org . junit . Assert . assertEquals ( getFieldName ( orders [ i ] ) , orders [ i ] . toString ( ) )
testNonWebAppProject ( ) { org . gradle . api . Project rootProject = org . gradle . testfixtures . ProjectBuilder . builder ( ) . withProjectDir ( testProjectRoot . getRoot ( ) ) . withName ( "root" ) . build ( ) ; rootProject . getPluginManager ( ) . apply ( "java" ) ; rootProject . getPluginManager ( ) . apply ( "co...
org . junit . Assert . assertNotNull ( ex . getMessage ( ) )
testSelectStatement ( ) { java . sql . Connection conn = java . sql . DriverManager . getConnection ( getUrl ( ) , org . apache . phoenix . util . PropertiesUtil . deepCopy ( TestUtil . TEST_PROPERTIES ) ) ; final java . lang . String tableName = "TEST_TABLE" ; try { java . lang . String ddl = ( ( "CREATE<sp>TABLE<sp>"...
org . junit . Assert . assertEquals ( expectedSelectStatement , selectStatement )
shouldHandleInvalidURLsGracefully ( ) { final ac . simons . biking2 . bikingpictures . DailyFratzeProvider dailyFratzeProvider = new ac . simons . biking2 . bikingpictures . DailyFratzeProvider ( "poef" ) ; java . net . URLConnection connection = dailyFratzeProvider . getRSSConnection ( "asd" ) ; "<AssertPlaceHolder>" ...
org . junit . Assert . assertNull ( connection )
shouldGetSelectItemsFromCollection ( ) { this . selectItems . setParent ( mockParent ( javax . faces . component . UISelectMany . class ) ) ; java . util . Collection < javax . faces . model . SelectItem > value = java . util . Collections . singleton ( new javax . faces . model . SelectItem ( ) ) ; this . selectItems ...
org . junit . Assert . assertThat ( actual , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( ( ( java . util . Collection < javax . faces . model . SelectItem > ) ( new java . util . ArrayList < javax . faces . model . SelectItem > ( value ) ) ) ) ) )
notLoggedShouldDeny ( ) { when ( request . getParameter ( "userId" ) ) . thenReturn ( "1" ) ; when ( userSession . isLogged ( ) ) . thenReturn ( false ) ; boolean shouldProceed = rule . shouldProceed ( userSession , request ) ; "<AssertPlaceHolder>" ; } shouldProceed ( net . jforum . entities . UserSession , javax . se...
org . junit . Assert . assertFalse ( shouldProceed )
shouldConvertDynamicInlinedRemovedProperty ( ) { int key = 10 ; org . neo4j . kernel . impl . store . record . PropertyRecord before = org . neo4j . kernel . impl . api . index . PropertyPhysicalToLogicalConverterTest . propertyRecord ( property ( key , longString ) ) ; org . neo4j . kernel . impl . store . record . Pr...
org . junit . Assert . assertEquals ( expected , update )
formatacceptxml ( ) { 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 , null ) ; "<AssertPlaceHolder>" ; } decideOutputForma...
org . junit . Assert . assertEquals ( MediaType . APPLICATION_ATOM_XML_TYPE , type )
shouldRespectWithNullMap ( ) { io . sundr . it . Lazy item = new io . sundr . it . LazyBuilder ( ) . withMap ( null ) . build ( ) ; "<AssertPlaceHolder>" ; } getMap ( ) { return this . map ; }
org . junit . Assert . assertNull ( item . getMap ( ) )
getPatientIdentifiers_shouldNotFetchPatientIdentifiersThatPartiallyMatchesGivenIdentifier ( ) { java . lang . String identifier = "123" ; java . util . List < org . openmrs . PatientIdentifier > patientIdentifiers = dao . getPatientIdentifiers ( identifier , new java . util . ArrayList ( ) , new java . util . ArrayList...
org . junit . Assert . assertTrue ( patientIdentifiers . isEmpty ( ) )
testGraphUnnest ( ) { fr . inria . corese . core . Graph g = fr . inria . corese . core . GraphStore . create ( ) ; fr . inria . corese . core . query . QueryProcess exec = fr . inria . corese . core . query . QueryProcess . create ( g ) ; fr . inria . corese . core . Graph g1 = fr . inria . corese . core . Graph . cre...
org . junit . Assert . assertEquals ( 2 , map . size ( ) )
shouldGetUnknownProperty ( ) { final uk . gov . gchq . gaffer . store . StoreProperties props = createStoreProperties ( ) ; java . lang . String value = props . get ( "a<sp>key<sp>that<sp>does<sp>not<sp>exist" ) ; "<AssertPlaceHolder>" ; } get ( K ) { return multiMap . get ( key ) ; }
org . junit . Assert . assertNull ( value )
testGetSize ( ) { org . openscience . cdk . config . Isotopes isofac = org . openscience . cdk . config . Isotopes . getInstance ( ) ; "<AssertPlaceHolder>" ; } getSize ( ) { return size ; }
org . junit . Assert . assertTrue ( ( ( isofac . getSize ( ) ) > 0 ) )
testFindPrimaryReferenceSingleChildOfSpan ( ) { io . opentracing . Tracer tracer = new org . hawkular . apm . client . opentracing . APMTracer ( ) ; io . opentracing . Span span = tracer . buildSpan ( "test" ) . start ( ) ; io . opentracing . impl . AbstractSpanBuilder . Reference ref = new io . opentracing . impl . Ab...
org . junit . Assert . assertEquals ( ref , io . opentracing . impl . APMSpan . findPrimaryReference ( java . util . Arrays . asList ( ref ) ) )
testBrowseDescReadMode ( ) { com . streamsets . pipeline . stage . origin . opcua . OpcUaClientSource source = new com . streamsets . pipeline . stage . origin . opcua . OpcUaClientSource ( getConfig ( OpcUaReadMode . BROWSE_NODES , java . util . Collections . emptyList ( ) ) ) ; com . streamsets . pipeline . sdk . Pus...
org . junit . Assert . assertEquals ( 1 , records . size ( ) )
testInvalidConfigMissingSuperInit ( ) { com . streamsets . pipeline . api . Processor processor = new com . streamsets . pipeline . api . base . SingleLaneProcessor ( ) { @ com . streamsets . pipeline . api . base . Override protected java . util . List < com . streamsets . pipeline . api . base . ConfigIssue > init ( ...
org . junit . Assert . assertFalse ( processor . init ( info , context ) . isEmpty ( ) )
testResolvedArtifact ( ) { org . apache . tuscany . sca . contribution . processor . ProcessorContext context = new org . apache . tuscany . sca . contribution . processor . ProcessorContext ( ) ; org . apache . tuscany . sca . contribution . Artifact artifact = factory . createArtifact ( ) ; artifact . setURI ( "foo/b...
org . junit . Assert . assertTrue ( ( x == artifact ) )
getVendorRoleForPaymentConfiguration_None ( ) { org . oscm . domobjects . Organization org = new org . oscm . domobjects . Organization ( ) ; org . oscm . test . data . Organizations . grantOrganizationRole ( org , OrganizationRoleType . CUSTOMER ) ; org . oscm . test . data . Organizations . grantOrganizationRole ( or...
org . junit . Assert . assertNull ( org . getVendorRoleForPaymentConfiguration ( ) )
testMergeJoinMultiWayNone2 ( ) { org . apache . rya . api . domain . RyaIRI pred = new org . apache . rya . api . domain . RyaIRI ( org . apache . rya . HashJoinTest . litdupsNS , "pred1" ) ; org . apache . rya . api . domain . RyaType zero = new org . apache . rya . api . domain . RyaType ( "0" ) ; org . apache . rya ...
org . junit . Assert . assertFalse ( join . hasNext ( ) )
MathML_html ( ) { java . lang . String input = "<math><mrow><mrow><msup><mi>x</mi><mn>2</mn></msup><mo>+</mo><mrow><mn>4</mn><mo>+</mo><mi>x</mi></mrow><mo>+</mo><mn>4</mn></mrow><mo>=</mo><mn>0</mn></mrow></math>" ; java . lang . String expect = "<span<sp>id=\"MTH-0001\"<sp>class=\"math\"<sp>format=\"mathml\"><math><m...
org . junit . Assert . assertEquals ( expect , actual )
testGetNameWhenParentHasNullName ( ) { final org . kie . workbench . common . dmn . api . definition . v1_1 . InformationItemPrimary informationItem = mock ( org . kie . workbench . common . dmn . api . definition . v1_1 . InformationItemPrimary . class ) ; final org . kie . workbench . common . dmn . api . definition ...
org . junit . Assert . assertTrue ( name . isEmpty ( ) )
selectWithTwoParams ( ) { org . qlrm . executor . JpaQueryExecutor queryExecutor = new org . qlrm . executor . JpaQueryExecutor ( ) ; java . util . List < org . qlrm . to . EmployeeTO > list = queryExecutor . executeSelect ( em , org . qlrm . to . EmployeeTO . class , "select_with_two_params.sql" , 1 , "Peter<sp>Muster...
org . junit . Assert . assertNotNull ( list )
testJumpTo2 ( ) { try ( com . questdb . cairo . VirtualMemory mem = new com . questdb . cairo . VirtualMemory ( 11 ) ) { mem . jumpTo ( 8 ) ; int n = 999 ; for ( int i = n ; i > 0 ; i -- ) { mem . putLong ( i ) ; } long o = 8 ; for ( int i = n ; i > 0 ; i -- ) { "<AssertPlaceHolder>" ; o += 8 ; } } } getLong ( int ) { ...
org . junit . Assert . assertEquals ( i , mem . getLong ( o ) )
testCancelOnErrorWithAnnotation01 ( ) { org . databene . contiperf . junit . ContiPerfRuleTest . TestBean test = new org . databene . contiperf . junit . ContiPerfRuleTest . TestBean ( ) ; try { check ( test , "cancelOnErrorWithAnnotation01" ) ; } catch ( org . databene . contiperf . junit . PerformanceRequirementFaile...
org . junit . Assert . assertEquals ( 5 , count )
testEnumGetters ( ) { final java . util . List < java . lang . Class < ? > > classes = nl . bzk . migratiebrp . synchronisatie . dal . domein . brp . kern . entity . GetterEnSetterTest . getClassesInPackage ( nl . bzk . migratiebrp . synchronisatie . dal . domein . brp . kern . entity . GetterEnSetterTest . ROOT_PACKAG...
org . junit . Assert . assertSame ( enumVeld . get ( obj ) , getterMethode . invoke ( obj ) )
test2methylbutanol_R ( ) { org . openscience . cdk . interfaces . IAtomContainer molecule = org . openscience . cdk . geometry . cip . CIPSMILESTest . smiles . parseSmiles ( "OCC([H])(C)CC" ) ; org . openscience . cdk . geometry . cip . LigancyFourChirality chirality = org . openscience . cdk . geometry . cip . CIPTool...
org . junit . Assert . assertEquals ( CIP_CHIRALITY . R , org . openscience . cdk . geometry . cip . CIPTool . getCIPChirality ( chirality ) )
simple ( ) { setupComposeExpectations ( "docker-compose.yml" ) ; java . util . List < io . fabric8 . maven . docker . config . ImageConfiguration > configs = handler . resolve ( unresolved , project , session ) ; "<AssertPlaceHolder>" ; validateRunConfiguration ( configs . get ( 0 ) . getRunConfiguration ( ) ) ; } reso...
org . junit . Assert . assertEquals ( 1 , configs . size ( ) )
updateRevenueShare ( ) { org . oscm . domobjects . RevenueShareModel revenueShareNew = createRevenueShareModel ( BigDecimal . ZERO , RevenueShareModelType . BROKER_REVENUE_SHARE ) ; revenueShareNew . setKey ( 2 ) ; org . oscm . domobjects . RevenueShareModel revenueShare = new org . oscm . domobjects . RevenueShareMode...
org . junit . Assert . assertEquals ( updatedRevenueShare . getRevenueShare ( ) , revenueShareNew . getRevenueShare ( ) )
setServiceAccountName ( ) { com . openshift . internal . restclient . model . v1 . ReplicationControllerTest . rc . setServiceAccountName ( "newDBServiceAccountName" ) ; "<AssertPlaceHolder>" ; } getServiceAccountName ( ) { org . junit . Assert . assertEquals ( "dbServiceAccountName" , com . openshift . internal . rest...
org . junit . Assert . assertEquals ( "newDBServiceAccountName" , com . openshift . internal . restclient . model . v1 . ReplicationControllerTest . rc . getServiceAccountName ( ) )
testCreateProceduresSectionBuilder ( ) { org . openhealthtools . mdht . uml . cda . builder . DocumentBuilder < org . openhealthtools . mdht . uml . cda . ccd . ContinuityOfCareDocument > clinicalDocumentBuilder = org . openhealthtools . mdht . uml . cda . ccd . builder . CCDBuilderFactory . createContinuityOfCareDocum...
org . junit . Assert . assertNotNull ( section )
newResponse ( ) { org . jboss . elasticsearch . river . remote . mgm . incrementalupdate . IncrementalUpdateResponse rb = IncrementalUpdateAction . INSTANCE . newResponse ( ) ; "<AssertPlaceHolder>" ; } newResponse ( ) { return new org . jboss . elasticsearch . river . remote . mgm . incrementalupdate . IncrementalUpda...
org . junit . Assert . assertNotNull ( rb )
resolveTargetSpecsIgnoresBuckout ( ) { java . nio . file . Path buckout = filesystem . getBuckPaths ( ) . getBuckOut ( ) ; java . nio . file . Path buckFile = cellRoot . resolve ( buckout . resolve ( "BUCK" ) ) ; java . nio . file . Files . createDirectories ( buckFile . getParent ( ) ) ; java . nio . file . Files . wr...
org . junit . Assert . assertThat ( targets , org . hamcrest . Matchers . equalTo ( com . google . common . collect . ImmutableList . of ( com . google . common . collect . ImmutableSet . of ( ) ) ) )
toPrimitiveShortForEmptyString ( ) { "<AssertPlaceHolder>" ; } toPrimitiveShort ( java . lang . Object ) { java . lang . Short s = org . slim3 . util . ShortUtil . toShort ( o ) ; if ( s == null ) { return 0 ; } return s . shortValue ( ) ; }
org . junit . Assert . assertThat ( org . slim3 . util . ShortUtil . toPrimitiveShort ( "" ) , org . hamcrest . CoreMatchers . is ( ( ( short ) ( 0 ) ) ) )
testInjectExternalUrls ( ) { eu . europa . esig . dss . client . ocsp . OnlineOCSPSource ocspSource = new eu . europa . esig . dss . client . ocsp . OnlineOCSPSource ( ) ; ocspSource . setDataLoader ( new eu . europa . esig . dss . client . http . commons . OCSPDataLoader ( ) ) ; java . util . List < java . lang . Stri...
org . junit . Assert . assertNotNull ( ocspToken )
testSerialization ( ) { org . jfree . chart . entity . ContourEntity e1 = new org . jfree . chart . entity . ContourEntity ( new java . awt . geom . Rectangle2D . Double ( 1.0 , 2.0 , 3.0 , 4.0 ) , "ToolTip" , "URL" ) ; org . jfree . chart . entity . ContourEntity e2 = ( ( org . jfree . chart . entity . ContourEntity )...
org . junit . Assert . assertEquals ( e1 , e2 )
testCompareToNameGt ( ) { org . jboss . forge . furnace . addons . AddonId left = org . jboss . forge . furnace . addons . AddonId . from ( "def" , "1.0.0-SNAPSHOT" ) ; org . jboss . forge . furnace . addons . AddonId right = org . jboss . forge . furnace . addons . AddonId . from ( "abc" , "1.0.0-SNAPSHOT" ) ; "<Asser...
org . junit . Assert . assertTrue ( ( ( left . compareTo ( right ) ) > 0 ) )
findMostRelevantResource_after ( ) { ch . puzzle . itc . mobiliar . business . generator . control . extracted . List < ch . puzzle . itc . mobiliar . business . resourcegroup . entity . ResourceEntity > resources = new ch . puzzle . itc . mobiliar . business . generator . control . extracted . ArrayList ( ) ; resource...
org . junit . Assert . assertEquals ( r4 , mostRelevantResource )
whenAddValueInLinkedSetThatArrayHaveOnlyUniqueValue ( ) { ru . szhernovoy . set . LinkedSet < java . lang . String > container = new ru . szhernovoy . set . LinkedSet ( ) ; container . add ( "first" ) ; container . add ( "second" ) ; container . add ( "first" ) ; java . lang . String control = "" ; while ( container . ...
org . junit . Assert . assertThat ( control , org . hamcrest . core . Is . is ( "second" ) )
testSetPropertyClosure ( ) { org . apache . camel . Exchange result = producerTemplate . request ( "direct:input2" , new org . apache . camel . Processor ( ) { public void process ( org . apache . camel . Exchange exchange ) throws org . openehealth . ipf . platform . camel . core . extend . Exception { exchange . getI...
org . junit . Assert . assertEquals ( "blah" , result . getProperty ( "test" ) )
testHasRecipientList ( ) { hudson . plugins . emailext . EmailType t = new hudson . plugins . emailext . EmailType ( ) ; t . addRecipientProvider ( new hudson . plugins . emailext . plugins . recipients . ListRecipientProvider ( ) ) ; "<AssertPlaceHolder>" ; } getHasRecipients ( ) { return ( ( ( recipientProviders ) !=...
org . junit . Assert . assertTrue ( t . getHasRecipients ( ) )